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