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 35dbb95 commit 4876d25
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/di": "^3.1",
"nette/utils": "^3.2.1 || ^4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion src/Bootstrap/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4876d25

Please sign in to comment.