diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fd95d74..9637f74 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/composer.json b/composer.json index 2f352bd..151d792 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": "8.1 - 8.3", + "php": "8.1 - 8.4", "nette/utils": "^4.0" }, "require-dev": { diff --git a/readme.md b/readme.md index 47b2f6d..d88b02a 100644 --- a/readme.md +++ b/readme.md @@ -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) diff --git a/src/Security/Permission.php b/src/Security/Permission.php index 888e85a..5dab423 100644 --- a/src/Security/Permission.php +++ b/src/Security/Permission.php @@ -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])) {