--TEST-- Named flags parameter for Attribute attribute (incorrect parameter name) --FILE-- getAttributes()[0]->newInstance(); ?> --EXPECTF-- Fatal error: Uncaught Error: Attribute "MyAttribute" cannot target function (allowed targets: class) in %s:%d Stack trace: #0 %s(%d): ReflectionAttribute->newInstance() #1 {main} thrown in %s on line %d