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 Jun 18, 2024
1 parent bb548ce commit faba355
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit faba355

Please sign in to comment.