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

13 lines
249 B
PHP

--TEST--
Testing __set() declaration in abstract class with wrong modifier
--FILE--
<?php
abstract class b {
abstract protected function __set($a);
}
?>
--EXPECTF--
Fatal error: Method b::__set() must take exactly 2 arguments in %s on line %d