Skip to content

Commit 47bbfb1

Browse files
committed
simplify boolean check
1 parent 09f7036 commit 47bbfb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/MissingTypehintCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function getNonGenericObjectTypesWithGenericClass(Type $type): array
121121
return $type;
122122
}
123123
if (
124-
$this->checkGenericIterableClasses !== true &&
124+
!$this->checkGenericIterableClasses &&
125125
in_array($classReflection->getName(), self::ITERABLE_GENERIC_CLASS_NAMES, true)
126126
) {
127127
// checked by getIterableTypesWithMissingValueTypehint() already

0 commit comments

Comments
 (0)