Skip to content

Commit

Permalink
support for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 18, 2024
1 parent eee50d9 commit 6cc63f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.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: ['8.1', '8.2', '8.3']
php: ['8.1', '8.2', '8.3', '8.4']

fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "8.1 - 8.3",
"php": "8.1 - 8.4",
"nette/utils": "^4.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Authentication & Authorization library for Nette.

Documentation can be found on the [website](https://doc.nette.org/access-control).

It requires PHP version 8.1 and supports PHP up to 8.3.
It requires PHP version 8.1 and supports PHP up to 8.4.


[Support Me](https://github.com/sponsors/dg)
Expand Down
2 changes: 1 addition & 1 deletion src/Security/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Permission implements Authorizator
* @throws Nette\InvalidArgumentException
* @throws Nette\InvalidStateException
*/
public function addRole(string $role, string|array $parents = null): static
public function addRole(string $role, string|array|null $parents = null): static
{
$this->checkRole($role, exists: false);
if (isset($this->roles[$role])) {
Expand Down

0 comments on commit 6cc63f2

Please sign in to comment.