Skip to content

Commit e2270d7

Browse files
actions-userTomasVotruba
authored andcommitted
[ci-review] Rector Rectify
1 parent e372f40 commit e2270d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎rules/Php80/Rector/Property/NestedAnnotationToAttributeRector.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\Php80\Rector\Property;
66

7+
use PhpParser\Comment\Doc;
78
use PhpParser\Node;
89
use PhpParser\Node\AttributeGroup;
910
use PhpParser\Node\Param;
@@ -107,7 +108,7 @@ public function getNodeTypes(): array
107108
public function refactor(Node $node): ?Node
108109
{
109110
// nested annotations converted to attributes only come from a docblock; skip nodes without one
110-
if ($node->getDocComment() === null) {
111+
if (!$node->getDocComment() instanceof Doc) {
111112
return null;
112113
}
113114

0 commit comments

Comments
 (0)