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
This commit is contained in:
Yoshinari Takaoka 2020-12-06 00:15:57 +00:00
parent c0e16e2e3d
commit 0cd5feb518

View file

@ -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();