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