php-src/Zend/tests/magic_methods_003.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 __unset declaring as static
--FILE--
<?php
class foo {
static function __unset($a) {
print "unset\n";
}
}
?>
--EXPECTF--
Fatal error: Method foo::__unset() cannot be static in %s on line %d