php-src/Zend/tests/magic_methods_010.phpt
Nikita Popov 149029b9d6 Unify magic method visibility check
This was missing entirely for the internal function case.
2020-07-20 11:12:47 +02:00

14 lines
238 B
PHP

--TEST--
Testing __toString() declaration with wrong modifier
--FILE--
<?php
class a {
static protected function __toString($a, $b) {
}
}
?>
--EXPECTF--
Fatal error: Method a::__toString() cannot take arguments in %s on line %d