Skip to content

Commit 96344ce

Browse files
gharlannicolas-grekas
authored andcommitted
optimize in_array calls
1 parent b72d44c commit 96344ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Type/BuiltinType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function isIdentifiedBy(TypeIdentifier|string ...$identifiers): bool
5959

6060
public function isNullable(): bool
6161
{
62-
return \in_array($this->typeIdentifier, [TypeIdentifier::NULL, TypeIdentifier::MIXED]);
62+
return \in_array($this->typeIdentifier, [TypeIdentifier::NULL, TypeIdentifier::MIXED], true);
6363
}
6464

6565
public function accepts(mixed $value): bool

0 commit comments

Comments
 (0)