Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d0bc8e5

Browse files
committed
support for PHP 8.4
1 parent d049640 commit d0bc8e5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
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.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

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.0 - 8.3",
18+
"php": "8.0 - 8.4",
1919
"nette/utils": "^3.2.9 || ^4.0"
2020
},
2121
"require-dev": {

‎readme.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

@@ -97,7 +97,7 @@ class Class4
9797
/** */
9898
class Class5
9999
{
100-
public function func1(\A $a, ?\B $b, ?\C $c = null, \D $d = null, ?int $i = 1, ?array $arr = [])
100+
public function func1(\A $a, ?\B $b, ?\C $c = null, ?\D $d = null, ?int $i = 1, ?array $arr = [])
101101
{
102102
}
103103

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /