xref: /PHP-8.0/Zend/tests/magic_methods_010.phpt (revision 149029b9)
1--TEST--
2Testing __toString() declaration with wrong modifier
3--FILE--
4<?php
5
6class a {
7    static protected function __toString($a, $b) {
8    }
9}
10
11?>
12--EXPECTF--
13Fatal error: Method a::__toString() cannot take arguments in %s on line %d
14