From 4876d25955b4164d714bc17c265f664f6594685b Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 18 Jun 2024 23:59:48 +0200 Subject: [PATCH] support for PHP 8.4 --- .github/workflows/tests.yml | 2 +- composer.json | 2 +- readme.md | 2 +- src/Bootstrap/Configurator.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1189b34..ebeec0a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/composer.json b/composer.json index bb278a2..47f60e0 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": "8.0 - 8.3", + "php": "8.0 - 8.4", "nette/di": "^3.1", "nette/utils": "^3.2.1 || ^4.0" }, diff --git a/readme.md b/readme.md index ece8bc6..64dd4bd 100644 --- a/readme.md +++ b/readme.md @@ -27,4 +27,4 @@ The recommended way to install is via Composer: composer require nette/bootstrap ``` -It requires PHP version 8.0 and supports PHP up to 8.3. +It requires PHP version 8.0 and supports PHP up to 8.4. diff --git a/src/Bootstrap/Configurator.php b/src/Bootstrap/Configurator.php index 6d5321a..239dda2 100644 --- a/src/Bootstrap/Configurator.php +++ b/src/Bootstrap/Configurator.php @@ -344,7 +344,7 @@ protected function getCacheDirectory(): string /** * Detects debug mode by IP addresses or computer names whitelist detection. */ - public static function detectDebugMode(string|array $list = null): bool + public static function detectDebugMode(string|array|null $list = null): bool { $addr = $_SERVER['REMOTE_ADDR'] ?? php_uname('n'); $secret = is_string($_COOKIE[self::CookieSecret] ?? null)