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 7a71f2f commit e6c03fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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 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 e6c03fe

Please sign in to comment.