function testArrayIndexGraphDereferencedFromStaticMethodCall() { $x = Clazz::method()[42]; return pow($x, 2); }
<?php namespace nspace; class Clazz { function method() { throw new \InvalidArgumentException('Lorem ipsum...', 123); } } $obj = new Clazz(); $obj->method();