mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
16 lines
339 B
PHP
16 lines
339 B
PHP
--TEST--
|
|
Testing __toString() declaration with wrong modifier
|
|
--FILE--
|
|
<?php
|
|
|
|
class a {
|
|
static protected function __toString($a, $b) {
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: The magic method __toString() must have public visibility and can not be static in %s on line %d
|
|
|
|
Fatal error: Method a::__tostring() cannot take arguments in %s on line %d
|