@@ -90,9 +90,7 @@ public function __construct(array $old, array $new, array $options = [])
90
90
*/
91
91
public function setOldNew (array $ old , array $ new ): self
92
92
{
93
- $ this ->setOld ($ old )->setNew ($ new );
94
-
95
- return $ this ;
93
+ return $ this ->setOld ($ old )->setNew ($ new );
96
94
}
97
95
98
96
/**
@@ -239,7 +237,7 @@ public function render(AbstractRenderer $renderer): string
239
237
/**
240
238
* Set a and b.
241
239
*
242
- * @deprecated 5.0.0
240
+ * @deprecated 5.0.0 use setOldNew() instead
243
241
*
244
242
* @param string[] $a the a
245
243
* @param string[] $b the b
@@ -254,7 +252,7 @@ public function setAB(array $a, array $b): self
254
252
/**
255
253
* Set a.
256
254
*
257
- * @deprecated 5.0.0
255
+ * @deprecated 5.0.0 use setOld() instead
258
256
*
259
257
* @param string[] $a the a
260
258
*
@@ -268,7 +266,7 @@ public function setA(array $a): self
268
266
/**
269
267
* Set b.
270
268
*
271
- * @deprecated 5.0.0
269
+ * @deprecated 5.0.0 use setNew() instead
272
270
*
273
271
* @param string[] $b the b
274
272
*
@@ -285,7 +283,7 @@ public function setB(array $b): self
285
283
*
286
284
* If $end is null, it returns array sliced from the $start to the end.
287
285
*
288
- * @deprecated 5.0.0
286
+ * @deprecated 5.0.0 use getOld() instead
289
287
*
290
288
* @param int $start the starting number. If null, the whole array will be returned.
291
289
* @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
303
301
*
304
302
* If $end is null, it returns array sliced from the $start to the end.
305
303
*
306
- * @deprecated 5.0.0
304
+ * @deprecated 5.0.0 use getNew() instead
307
305
*
308
306
* @param int $start the starting number
309
307
* @param null|int $end the ending number
0 commit comments