Skip to content

Commit

Permalink
Fix: Use PhpParser\Node\Scalar\Int_ instead of PhpParser\Node\Scalar\…
Browse files Browse the repository at this point in the history
…LNumber
  • Loading branch information
localheinz committed Dec 1, 2024
1 parent bf6bddc commit 2b2e88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files/DeclareStrictTypesRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function processNode(
foreach ($firstNode->declares as $declare) {
if (
'strict_types' === $declare->key->toLowerString()
&& $declare->value instanceof Node\Scalar\LNumber
&& $declare->value instanceof Node\Scalar\Int_
&& 1 === $declare->value->value
) {
return [];
Expand Down

0 comments on commit 2b2e88c

Please sign in to comment.