Skip to content

Commit 6cc63f2

Browse files
committed
support for PHP 8.4
1 parent eee50d9 commit 6cc63f2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['8.1', '8.2', '8.3']
10+
php: ['8.1', '8.2', '8.3', '8.4']
1111

1212
fail-fast: false
1313

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "8.1 - 8.3",
18+
"php": "8.1 - 8.4",
1919
"nette/utils": "^4.0"
2020
},
2121
"require-dev": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Authentication & Authorization library for Nette.
2020

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

23-
It requires PHP version 8.1 and supports PHP up to 8.3.
23+
It requires PHP version 8.1 and supports PHP up to 8.4.
2424

2525

2626
[Support Me](https://github.com/sponsors/dg)

src/Security/Permission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Permission implements Authorizator
5050
* @throws Nette\InvalidArgumentException
5151
* @throws Nette\InvalidStateException
5252
*/
53-
public function addRole(string $role, string|array $parents = null): static
53+
public function addRole(string $role, string|array|null $parents = null): static
5454
{
5555
$this->checkRole($role, exists: false);
5656
if (isset($this->roles[$role])) {

0 commit comments

Comments
 (0)