From 2b2e88c320be1624d0608c3621ec39e53f2b67b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sun, 1 Dec 2024 14:50:16 +0100 Subject: [PATCH] Fix: Use PhpParser\Node\Scalar\Int_ instead of PhpParser\Node\Scalar\LNumber --- src/Files/DeclareStrictTypesRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files/DeclareStrictTypesRule.php b/src/Files/DeclareStrictTypesRule.php index 4e3c207d..e5d28ec0 100644 --- a/src/Files/DeclareStrictTypesRule.php +++ b/src/Files/DeclareStrictTypesRule.php @@ -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 [];