xref: /PHP-8.0/Zend/tests/magic_methods_009.phpt (revision 19de727e)
1--TEST--
2Testing __callstatic declaration with wrong modifier
3--FILE--
4<?php
5
6class a {
7    static protected function __callstatic($a, $b) {
8    }
9}
10
11?>
12--EXPECTF--
13Warning: The magic method a::__callstatic() must have public visibility in %s on line %d
14