mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods
19 lines
389 B
PHP
19 lines
389 B
PHP
--TEST--
|
|
Enum __wakeup
|
|
--FILE--
|
|
<?php
|
|
|
|
enum Foo {
|
|
case Bar;
|
|
|
|
public function __wakeup() {
|
|
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
|
|
|
|
Fatal error: Enum Foo cannot include magic method __wakeup in %s on line %d
|