Skip to content

Commit 0d27b00

Browse files
committed
Add PHP 8.4 support.
1 parent a98f8c2 commit 0d27b00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "7.1.*|7.2.*|7.3.*|7.4.*|8.0.*|8.1.*|8.2.*|8.3.*"
19+
"php": "7.1.*|7.2.*|7.3.*|7.4.*|8.0.*|8.1.*|8.2.*|8.3.*|8.4.*"
2020
},
2121
"require-dev": {
2222
"ivopetkov/docs-generator": "1.*"

src/DataListTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ public function concat($list): self
324324
* Extract a slice of the list.
325325
*
326326
* @param int $offset The index position where the extraction should begin
327-
* @param int $length The max length of the items in the extracted slice.
327+
* @param int|null $length The max length of the items in the extracted slice.
328328
* @return mixed Returns a slice of the list.
329329
* @throws \InvalidArgumentException
330330
*/
331-
public function slice(int $offset, int $length = null)
331+
public function slice(int $offset, ?int $length = null)
332332
{
333333
$actions = $this->internalDataListActions;
334334
$actions[] = ['slice', $offset, $length];

0 commit comments

Comments
 (0)