We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d7e74d commit 21a2e45Copy full SHA for 21a2e45
rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php
@@ -12,6 +12,7 @@
12
use PhpParser\Node\Scalar\String_;
13
use PhpParser\Node\Stmt\ClassLike;
14
use PhpParser\Node\Stmt\ClassMethod;
15
+use PhpParser\Node\Stmt\Function_;
16
use PhpParser\Node\Stmt\Property;
17
use Rector\NodeNameResolver\NodeNameResolver;
18
use Rector\PhpAttribute\Enum\DocTagNodeState;
@@ -23,7 +24,7 @@ public function __construct(
23
24
) {
25
}
26
- public function hasPhpAttribute(Property | ClassLike | ClassMethod | Param $node, string $attributeClass): bool
27
+ public function hasPhpAttribute(Property | ClassLike | ClassMethod | Param | Function_ $node, string $attributeClass): bool
28
{
29
foreach ($node->attrGroups as $attrGroup) {
30
foreach ($attrGroup->attrs as $attribute) {
0 commit comments