From 0cd5feb518a84d172e9d87c8d72b8ebe37097ef5 Mon Sep 17 00:00:00 2001 From: Yoshinari Takaoka Date: Sun, 6 Dec 2020 00:15:57 +0000 Subject: [PATCH] fixed attribute syntax example. In this example, SetUp attribute belongs to ReflectionMethod. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351915 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/attributes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();