From 4b5c716c2728be425c1c0bcfb608769c0d2e4e6c Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 18 Jun 2024 23:08:23 +0200 Subject: [PATCH] support for PHP 8.4 --- .github/workflows/tests.yml | 2 +- composer.json | 2 +- readme.md | 2 +- tests/DI/Compiler.configOverride.phpt | 2 +- tests/bootstrap.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1bee6e40e..b908378f2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/composer.json b/composer.json index 28498797b..9811dc52b 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/readme.md b/readme.md index 97f74641d..25acf6454 100644 --- a/readme.md +++ b/readme.md @@ -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.   diff --git a/tests/DI/Compiler.configOverride.phpt b/tests/DI/Compiler.configOverride.phpt index ab810683a..ed31e4996 100644 --- a/tests/DI/Compiler.configOverride.phpt +++ b/tests/DI/Compiler.configOverride.phpt @@ -21,7 +21,7 @@ class Ipsum } } -$class = 'Container' . md5((string) lcg_value()); +$class = 'Container'; $compiler = new DI\Compiler; $compiler->addConfig([ 'services' => [ diff --git a/tests/bootstrap.php b/tests/bootstrap.php index bf517ce72..9969632d5 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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);