Skip to content

Commit 4c67c72

Browse files
committed
support for PHP 8.5
1 parent dc6ee18 commit 4c67c72

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['8.0', '8.1', '8.2', '8.3', '8.4']
10+
php: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
1111

1212
fail-fast: false
1313

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "8.0 - 8.4"
18+
"php": "8.0 - 8.5"
1919
},
2020
"require-dev": {
2121
"nette/tester": "^2.5",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Install it using Composer:
1313
composer require nette/command-line
1414
```
1515

16-
It requires PHP version 8.0 and supports PHP up to 8.4.
16+
It requires PHP version 8.0 and supports PHP up to 8.5.
1717

1818
If you like Nette, **[please make a donation now](https://nette.org/donate)**. Thank you!

src/CommandLine/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function color(?string $color, ?string $s = null): string
3737
'navy' => '0;34', 'blue' => '1;34', 'green' => '0;32', 'lime' => '1;32',
3838
'teal' => '0;36', 'aqua' => '1;36', 'maroon' => '0;31', 'red' => '1;31',
3939
'purple' => '0;35', 'fuchsia' => '1;35', 'olive' => '0;33', 'yellow' => '1;33',
40-
null => '0',
40+
'' => '0',
4141
];
4242
if ($this->useColors) {
4343
$c = explode('/', $color ?: '/');

0 commit comments

Comments
 (0)