|
197 | 197 | * @method static ArrayUtils sortKeyFrom(iterable $from, ?callable $callback = null)
|
198 | 198 | * @method static array sortKeyFromAs(iterable $from, ?callable $callback = null)
|
199 | 199 | *
|
200 |
| - * @method ArrayUtils splice(int $offset, ?int $length = null, mixed ...$replacement) |
201 |
| - * @method array spliceAs(int $offset, ?int $length = null, mixed ...$replacement) |
202 |
| - * @method static ArrayUtils spliceFrom(iterable $from, int $offset, ?int $length = null, mixed ...$replacement) |
203 |
| - * @method static array spliceFromAs(iterable $from, int $offset, ?int $length = null, mixed ...$replacement) |
204 |
| - * |
205 | 200 | * @method ArrayUtils unique(int $sortFlags = SORT_STRING)
|
206 | 201 | * @method array uniqueAs(int $sortFlags = SORT_STRING)
|
207 | 202 | * @method static ArrayUtils uniqueFrom(iterable $from, int $sortFlags = SORT_STRING)
|
|
274 | 269 | * @method mixed shift()
|
275 | 270 | * @method static mixed shiftFrom(iterable &$from)
|
276 | 271 | *
|
| 272 | + * @method array splice(int $offset, ?int $length = null, mixed ...$replacement) |
| 273 | + * @method static array spliceFrom(iterable $from, int $offset, ?int $length = null, mixed ...$replacement) |
| 274 | + * |
277 | 275 | * @method string join(string $glue = ",", string $prefix = "", string $suffix = "")
|
278 | 276 | * @method static string joinFrom(iterable $from, string $glue = ",", string $prefix = "", string $suffix = "")
|
279 | 277 | */
|
@@ -934,8 +932,8 @@ protected static function __sortKey(array $from, ?callable $callback = null) : a
|
934 | 932 | * @see \array_splice
|
935 | 933 | * @url https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
|
936 | 934 | */
|
937 |
| - protected static function __splice(array $from, int $offset, ?int $length = null, ...$replacement) : array{ |
938 |
| - return array_splice($array, $offset, $length ?? count($from), $replacement); |
| 935 | + protected static function _splice(array &$from, int $offset, ?int $length = null, ...$replacement) : array{ |
| 936 | + return array_splice($from, $offset, $length ?? count($from), $replacement); |
939 | 937 | }
|
940 | 938 |
|
941 | 939 | /**
|
|
0 commit comments