diff --git a/language/attributes.xml b/language/attributes.xml index 8a4dc9b2a2..b7b3a69c3f 100755 --- a/language/attributes.xml +++ b/language/attributes.xml @@ -81,7 +81,7 @@ function executeAction(ActionHandler $actionHandler) { $reflection = new ReflectionObject($actionHandler); foreach ($reflection->getMethods() as $method) { - $attributes = $reflection->getAttributes(SetUp::class); + $attributes = $method->getAttributes(SetUp::class); if (count($attributes) > 0) { $methodName = $method->getName();