Skip to content

Commit faba355

Browse files
committed
support for PHP 8.4
1 parent bb548ce commit faba355

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/tests.yml

+1-1
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.0', '8.1', '8.2', '8.3']
10+
php: ['8.0', '8.1', '8.2', '8.3', '8.4']
1111

1212
fail-fast: false
1313

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "8.0 - 8.3",
18+
"php": "8.0 - 8.4",
1919
"nette/utils": "^3.2.9 || ^4.0"
2020
},
2121
"require-dev": {

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Download and install the library using the [Composer](https://doc.nette.org/en/b
2626
composer require nette/php-generator
2727
```
2828

29-
PhpGenerator 4.1 is compatible with PHP 8.0 to 8.3. Documentation can be found on the [library's website](https://doc.nette.org/php-generator).
29+
PhpGenerator 4.1 is compatible with PHP 8.0 to 8.4. Documentation can be found on the [library's website](https://doc.nette.org/php-generator).
3030

3131
 <!---->
3232

tests/PhpGenerator/fixtures/bodies.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function long()
3636
throw new Nette\InvalidArgumentException('Argument must be Method|Property|Constant.');
3737
}
3838

39-
function resolving($a = a\FOO, self $b = null, $c = self::FOO)
39+
function resolving($a = a\FOO, ?self $b = null, $c = self::FOO)
4040
{
4141
// constants
4242
echo FOO;

tests/PhpGenerator/fixtures/classes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function &func3(/** foo */array $a, Class2 $b, \Abc\Unknown $c, \Xyz\Unk
7272
}
7373

7474

75-
private function func4(array $a = [], Class2 $b = null, $c = Unknown::ABC)
75+
private function func4(array $a = [], ?Class2 $b = null, $c = Unknown::ABC)
7676
{
7777
}
7878

0 commit comments

Comments
 (0)