Skip to content

Commit

Permalink
support for PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 6, 2022
1 parent d469999 commit a6784d5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']

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": ">=7.2 <8.2"
"php": ">=7.2 <8.3"
},
"require-dev": {
"nette/tester": "~2.0",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The recommended way to install is via Composer:
composer require nette/utils
```

- Nette Utils 3.2 is compatible with PHP 7.2 to 8.1
- Nette Utils 3.2 is compatible with PHP 7.2 to 8.2
- Nette Utils 3.1 is compatible with PHP 7.1 to 8.0
- Nette Utils 3.0 is compatible with PHP 7.1 to 8.0
- Nette Utils 2.5 is compatible with PHP 5.6 to 8.0
Expand Down
4 changes: 2 additions & 2 deletions tests/Utils/Callback.invokeSafe.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ Assert::same('OK1', $res);
Callback::invokeSafe('preg_match', ['ab', 'foo'], function () {
return false;
});
Assert::same('preg_match(): Delimiter must not be alphanumeric or backslash', $res);
Assert::match('preg_match(): Delimiter must not be alphanumeric%a%', $res);


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

trigger_error('OK2', E_USER_WARNING);
Assert::same('OK2', $res);
Expand Down
3 changes: 3 additions & 0 deletions tests/Utils/FileSystem.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ require __DIR__ . '/../bootstrap.php';

class RemoteStream /* extends \streamWrapper */
{
public $context;


public function stream_read()
{
return '';
Expand Down

0 comments on commit a6784d5

Please sign in to comment.