php-src/Zend/tests/magic_methods_009.phpt
Nikita Popov 19de727e04 Report magic method names as written
Report the name the way the user has written it, the same way we
always do.
2020-07-20 11:12:47 +02:00

14 lines
254 B
PHP

--TEST--
Testing __callstatic declaration with wrong modifier
--FILE--
<?php
class a {
static protected function __callstatic($a, $b) {
}
}
?>
--EXPECTF--
Warning: The magic method a::__callstatic() must have public visibility in %s on line %d