<?php #[Example] class Foo { #[Example] public function method() { } } class Bar extends Foo {} foreach ([Foo::class, Bar::class] as $class) { $reflector = new ReflectionClass($class); var_dump($reflector->getAttributes()); } foreach ([[Foo::class, "method"], [Bar::class, "method"]] as $method) { $reflector = new ReflectionMethod(...$method); var_dump($reflector->getAttributes()); } ?>
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`