@@ -90,9 +90,7 @@ public function __construct(array $old, array $new, array $options = [])
9090 */
9191 public function setOldNew (array $ old , array $ new ): self
9292 {
93- $ this ->setOld ($ old )->setNew ($ new );
94-
95- return $ this ;
93+ return $ this ->setOld ($ old )->setNew ($ new );
9694 }
9795
9896 /**
@@ -239,7 +237,7 @@ public function render(AbstractRenderer $renderer): string
239237 /**
240238 * Set a and b.
241239 *
242- * @deprecated 5.0.0
240+ * @deprecated 5.0.0 use setOldNew() instead
243241 *
244242 * @param string[] $a the a
245243 * @param string[] $b the b
@@ -254,7 +252,7 @@ public function setAB(array $a, array $b): self
254252 /**
255253 * Set a.
256254 *
257- * @deprecated 5.0.0
255+ * @deprecated 5.0.0 use setOld() instead
258256 *
259257 * @param string[] $a the a
260258 *
@@ -268,7 +266,7 @@ public function setA(array $a): self
268266 /**
269267 * Set b.
270268 *
271- * @deprecated 5.0.0
269+ * @deprecated 5.0.0 use setNew() instead
272270 *
273271 * @param string[] $b the b
274272 *
@@ -285,7 +283,7 @@ public function setB(array $b): self
285283 *
286284 * If $end is null, it returns array sliced from the $start to the end.
287285 *
288- * @deprecated 5.0.0
286+ * @deprecated 5.0.0 use getOld() instead
289287 *
290288 * @param int $start the starting number. If null, the whole array will be returned.
291289 * @param null|int $end the ending number. If null, only the item in $start will be returned.
@@ -303,7 +301,7 @@ public function getA(int $start = 0, ?int $end = null): array
303301 *
304302 * If $end is null, it returns array sliced from the $start to the end.
305303 *
306- * @deprecated 5.0.0
304+ * @deprecated 5.0.0 use getNew() instead
307305 *
308306 * @param int $start the starting number
309307 * @param null|int $end the ending number
0 commit comments