Skip to content

Commit

Permalink
Add PHP 8.4 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopetkov committed Dec 22, 2024
1 parent a98f8c2 commit 0d27b00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": "7.1.*|7.2.*|7.3.*|7.4.*|8.0.*|8.1.*|8.2.*|8.3.*"
"php": "7.1.*|7.2.*|7.3.*|7.4.*|8.0.*|8.1.*|8.2.*|8.3.*|8.4.*"
},
"require-dev": {
"ivopetkov/docs-generator": "1.*"
Expand Down
4 changes: 2 additions & 2 deletions src/DataListTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ public function concat($list): self
* Extract a slice of the list.
*
* @param int $offset The index position where the extraction should begin
* @param int $length The max length of the items in the extracted slice.
* @param int|null $length The max length of the items in the extracted slice.
* @return mixed Returns a slice of the list.
* @throws \InvalidArgumentException
*/
public function slice(int $offset, int $length = null)
public function slice(int $offset, ?int $length = null)
{
$actions = $this->internalDataListActions;
$actions[] = ['slice', $offset, $length];
Expand Down

0 comments on commit 0d27b00

Please sign in to comment.