php-src/Zend/tests/magic_methods_005.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

13 lines
221 B
PHP

--TEST--
Testing __call() declaration in interface with wrong modifier
--FILE--
<?php
interface a {
static function __call($a, $b);
}
?>
--EXPECTF--
Fatal error: Method a::__call() cannot be static in %s on line %d