Skip to content

Commit c0b5807

Browse files
committed
support for PHP 8.5
1 parent 1618f1a commit c0b5807

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
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.1', '8.2', '8.3', '8.4']
10+
php: ['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.1 - 8.4",
18+
"php": "8.1 - 8.5",
1919
"nette/component-model": "^3.1",
2020
"nette/http": "^3.3.2",
2121
"nette/routing": "^3.1",

src/Bridges/ApplicationLatte/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function blueprint(?string $parentClass = null): void
153153
/**
154154
* Prevents unserialization.
155155
*/
156-
final public function __wakeup()
156+
final public function __unserialize($_)
157157
{
158158
throw new Nette\NotImplementedException('Object unserialization is not supported by class ' . static::class);
159159
}

tests/Bridges.DI/RoutingExtension.cache.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MyRouter implements Nette\Routing\Router
3030
}
3131

3232

33-
public function __wakeup()
33+
public function __unserialize($_)
3434
{
3535
$this->woken = true;
3636
}

tests/Routers/Route.filter.global.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require __DIR__ . '/Route.php';
1616

1717

1818
$route = new Route('<presenter>', [
19-
null => [
19+
'' => [
2020
Route::FilterIn => function (array $arr) {
2121
if (substr($arr['presenter'], 0, 3) !== 'Abc') {
2222
return null;
@@ -50,7 +50,7 @@ Assert::null(testRouteOut($route, ['presenter' => 'Cde']));
5050

5151

5252
$route = new Route('<lang>/<presenter>/<action>', [
53-
null => [
53+
'' => [
5454
Route::FilterIn => function (array $arr) {
5555
if ($arr['presenter'] !== 'AbcCs') {
5656
return null;

0 commit comments

Comments
 (0)