Skip to content

Commit 02a54c4

Browse files
committed
support for PHP 8.2
1 parent 845d977 commit 02a54c4

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest]
11-
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
11+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1212

1313
fail-fast: false
1414

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": ">=7.2 <8.2"
18+
"php": ">=7.2 <8.3"
1919
},
2020
"require-dev": {
2121
"nette/tester": "~2.0",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The recommended way to install is via Composer:
3939
composer require nette/utils
4040
```
4141

42-
- Nette Utils 3.2 is compatible with PHP 7.2 to 8.1
42+
- Nette Utils 3.2 is compatible with PHP 7.2 to 8.2
4343
- Nette Utils 3.1 is compatible with PHP 7.1 to 8.0
4444
- Nette Utils 3.0 is compatible with PHP 7.1 to 8.0
4545
- Nette Utils 2.5 is compatible with PHP 5.6 to 8.0

tests/Utils/Callback.invokeSafe.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ Assert::same('OK1', $res);
3434
Callback::invokeSafe('preg_match', ['ab', 'foo'], function () {
3535
return false;
3636
});
37-
Assert::same('preg_match(): Delimiter must not be alphanumeric or backslash', $res);
37+
Assert::match('preg_match(): Delimiter must not be alphanumeric%a%', $res);
3838

3939

4040
// error -> exception
4141
Assert::exception(function () {
4242
Callback::invokeSafe('preg_match', ['ab', 'foo'], function ($message, $severity) {
4343
throw new Exception($message, $severity);
4444
});
45-
}, 'Exception', 'Delimiter must not be alphanumeric or backslash', E_WARNING);
45+
}, 'Exception', 'Delimiter must not be alphanumeric%a%', E_WARNING);
4646

4747
trigger_error('OK2', E_USER_WARNING);
4848
Assert::same('OK2', $res);

tests/Utils/FileSystem.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ require __DIR__ . '/../bootstrap.php';
1515

1616
class RemoteStream /* extends \streamWrapper */
1717
{
18+
public $context;
19+
20+
1821
public function stream_read()
1922
{
2023
return '';

0 commit comments

Comments
 (0)