Skip to content

Commit 474e25e

Browse files
committed
enum - set obvious strict flag for \in_array
1 parent 5333cd7 commit 474e25e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Enum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ public static function hasIn($model, array $keys): bool
119119
{
120120
if (\is_object($model)) {
121121
if ($attribute = static::$attribute) {
122-
return \in_array($model->$attribute, $keys);
122+
return \in_array($model->$attribute, $keys, false);
123123
}
124124
} else {
125-
return \in_array($model, $keys);
125+
return \in_array($model, $keys, false);
126126
}
127127

128128
return false;

0 commit comments

Comments
 (0)