Skip to content

Commit d3e0b85

Browse files
DanielEScherzerondrejmirtes
authored andcommitted
->name
1 parent 2c5bbbf commit d3e0b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/FunctionDefinitionCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function checkAnonymousFunction(
206206
if ($returnTypeNode instanceof FullyQualified && $returnTypeNode->name === 'void') {
207207
foreach ($attribGroups as $attribGroup) {
208208
foreach ($attribGroup->attrs as $attrib) {
209-
if (strtolower($attrib->name) === 'nodiscard') {
209+
if (strtolower($attrib->name->name) === 'nodiscard') {
210210
$errors[] = RuleErrorBuilder::message($noDiscardVoidReturnMessage)
211211
->line($returnTypeNode->getStartLine())
212212
->identifier('attribute.target')

0 commit comments

Comments
 (0)