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 Oct 5, 2024
1 parent 0833a0b commit 4b5c716
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.1', '8.2', '8.3']
php: ['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.1 - 8.3",
"php": "8.1 - 8.4",
"ext-tokenizer": "*",
"ext-ctype": "*",
"nette/neon": "^3.3 || ^4.0",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The recommended way to install is via Composer:
composer require nette/di
```

It requires PHP version 8.1 and supports PHP up to 8.3.
It requires PHP version 8.1 and supports PHP up to 8.4.

 <!---->

Expand Down
2 changes: 1 addition & 1 deletion tests/DI/Compiler.configOverride.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Ipsum
}
}

$class = 'Container' . md5((string) lcg_value());
$class = 'Container';
$compiler = new DI\Compiler;
$compiler->addConfig([
'services' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function fetch(): array

function createContainer($source, $config = null, array $params = []): ?Nette\DI\Container
{
$class = 'Container' . md5((string) lcg_value());
$class = 'Container' . @++$GLOBALS['counter'];
if ($source instanceof Nette\DI\ContainerBuilder) {
$source->complete();
$code = (new Nette\DI\PhpGenerator($source))->generate($class);
Expand Down

0 comments on commit 4b5c716

Please sign in to comment.