0
0
mirror of https://github.com/php/php-src.git synced 2024-12-18 14:30:35 +08:00
php-src/Zend/tests/magic_methods_unserialize.phpt
Nikita Popov fbbcf82ab7 Unify static/non-static check for magic methods
And promote it to be fatal.
2020-07-20 10:39:43 +02:00

11 lines
218 B
PHP

--TEST--
__unserialize declaration
--FILE--
<?php
class Foo {
static function __unserialize($data, $value) {}
}
?>
--EXPECTF--
Fatal error: Method Foo::__unserialize() must take exactly 1 argument in %s on line %d