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 Sep 10, 2024
1 parent d049640 commit d0bc8e5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 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.0', '8.1', '8.2', '8.3']
php: ['8.0', '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.0 - 8.3",
"php": "8.0 - 8.4",
"nette/utils": "^3.2.9 || ^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 @@ -26,7 +26,7 @@ Download and install the library using the [Composer](https://doc.nette.org/en/b
composer require nette/php-generator
```

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).
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).

 <!---->

Expand Down
2 changes: 1 addition & 1 deletion tests/PhpGenerator/fixtures/bodies.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function long()
throw new Nette\InvalidArgumentException('Argument must be Method|Property|Constant.');
}

function resolving($a = a\FOO, self $b = null, $c = self::FOO)
function resolving($a = a\FOO, ?self $b = null, $c = self::FOO)
{
// constants
echo FOO;
Expand Down
4 changes: 2 additions & 2 deletions tests/PhpGenerator/fixtures/classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function &func3(/** foo */array $a, Class2 $b, \Abc\Unknown $c, \Xyz\Unk
}


private function func4(array $a = [], Class2 $b = null, $c = Unknown::ABC)
private function func4(array $a = [], ?Class2 $b = null, $c = Unknown::ABC)
{
}

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

Expand Down

0 comments on commit d0bc8e5

Please sign in to comment.