xref: /PHP-8.2/Zend/tests/dynamic_call_002.phpt (revision 33476ec3)
1--TEST--
2Testing dynamic call with invalid value for method name
3--FILE--
4<?php
5
6$a = new stdClass;
7
8$a::$a();
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Method name must be a string in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16