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 [];