mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
c0e16e2e3d
commit
0cd5feb518
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue