--TEST-- Catch method calls on non-objects with nested calls to static methods --FILE-- method(Nesting::nested())); var_dump($x->method($class::nested())); var_dump($x->method($class::{$method}())); var_dump($x->method([Nesting::nested()])); echo "Alive\n"; ?> --EXPECTF-- Called #1 NULL Called #2 NULL Called #3 NULL Called #4 NULL Alive