1--TEST-- 2Invalid method name in dynamic static call 3--FILE-- 4<?php 5 6class foo { 7 static function __callstatic($a, $b) { 8 var_dump($a); 9 } 10} 11 12foo::AaA(); 13 14$a = 1; 15foo::$a(); 16 17?> 18--EXPECTF-- 19string(3) "AaA" 20 21Fatal error: Uncaught Error: Method name must be a string in %s:%d 22Stack trace: 23#0 {main} 24 thrown in %s on line %d 25