0
0
mirror of https://github.com/php/php-src.git synced 2024-12-19 06:50:17 +08:00
php-src/Zend/tests/magic_methods_set_state.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

15 lines
225 B
PHP

--TEST--
Testing __set_state() declaration with wrong modifier
--FILE--
<?php
class Foo {
function __set_state($array)
{
}
}
?>
--EXPECTF--
Fatal error: Method Foo::__set_state() must be static in %s on line %d