From 3c01a4f1e3562aad1ec7fac5fae7af781feda170 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 3 Aug 2022 12:45:23 +0200 Subject: [PATCH] Deprecate the majority of methods in \wcf\util\Diff --- .../install/files/lib/util/Diff.class.php | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/wcfsetup/install/files/lib/util/Diff.class.php b/wcfsetup/install/files/lib/util/Diff.class.php index 68c4384f0c..da6aa91ce7 100644 --- a/wcfsetup/install/files/lib/util/Diff.class.php +++ b/wcfsetup/install/files/lib/util/Diff.class.php @@ -65,10 +65,7 @@ class Diff protected $d; /** - * Creates a new instance of Diff. - * - * @param string[] $a original lines of text - * @param string[] $b modified lines of text + * @deprecated 5.6 Use sebastian/diff instead. */ public function __construct(array $a, array $b) { @@ -80,10 +77,7 @@ class Diff } /** - * Calculates the longest common subsequence of `$this->a` - * and `$this->b` and returns it as an SplFixedArray. - * - * @return \SplFixedArray Array of all the items in the longest common subsequence. + * @deprecated 5.6 Use sebastian/diff instead. */ public function getLCS() { @@ -236,9 +230,7 @@ class Diff } /** - * Returns the raw difference array. - * - * @return array + * @deprecated 5.6 Use sebastian/diff instead. */ public function getRawDiff() { @@ -248,10 +240,7 @@ class Diff } /** - * Returns a string like the one generated by unix diff. - * - * @param int $context - * @return string + * @deprecated 5.6 Use sebastian/diff instead. */ public function getUnixDiff($context = 2) { @@ -356,7 +345,7 @@ class Diff } /** - * @see Diff::getUnixDiff() + * @deprecated 5.6 Use sebastian/diff instead. */ public function __toString() { -- 2.20.1