Skip to content

Commit f8debd4

Browse files
committed
support for PHP 8.5
1 parent 7428d8f commit f8debd4

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
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/utils": "^4.0"
2020
},
2121
"require-dev": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ The recommended way to install is via Composer:
2828
composer require nette/component-model
2929
```
3030

31-
It requires PHP version 8.1 and supports PHP up to 8.4.
31+
It requires PHP version 8.1 and supports PHP up to 8.5.

src/ComponentModel/Component.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,8 @@ public function __clone()
298298
/**
299299
* Prevents serialization.
300300
*/
301-
final public function __sleep()
301+
final public function __serialize()
302302
{
303303
throw new Nette\NotImplementedException('Object serialization is not supported by class ' . static::class);
304304
}
305-
306-
307-
/**
308-
* Prevents unserialization.
309-
*/
310-
final public function __wakeup()
311-
{
312-
throw new Nette\NotImplementedException('Object unserialization is not supported by class ' . static::class);
313-
}
314305
}

0 commit comments

Comments
 (0)