Skip to content

Commit

Permalink
Add support for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdheiden committed Mar 17, 2024
1 parent 5255909 commit 28b9467
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1', '8.2' ]
php-versions: [ '8.1', '8.2', '8.3' ]

name: PHP ${{ matrix.php-versions }}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"require": {
"php": "^8.1",
"illuminate/collections": "^10.33"
"illuminate/collections": "^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^10.4",
Expand Down
2 changes: 1 addition & 1 deletion pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"preset": "laravel",
"rules": {
"array_indentation": false,
"Laravel/laravel_phpdoc_alignment": false
"phpdoc_align": false
}
}
2 changes: 1 addition & 1 deletion src/ConditionCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ConditionCollection
/** @var Collection<Condition> */
private readonly Collection $conditions;

public function __construct(Collection $conditions = null)
public function __construct(?Collection $conditions = null)
{
$this->conditions = $conditions ?? collect();
}
Expand Down

0 comments on commit 28b9467

Please sign in to comment.