We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
\in_array
1 parent 5333cd7 commit 474e25eCopy full SHA for 474e25e
Enum.php
@@ -119,10 +119,10 @@ public static function hasIn($model, array $keys): bool
119
{
120
if (\is_object($model)) {
121
if ($attribute = static::$attribute) {
122
- return \in_array($model->$attribute, $keys);
+ return \in_array($model->$attribute, $keys, false);
123
}
124
} else {
125
- return \in_array($model, $keys);
+ return \in_array($model, $keys, false);
126
127
128
return false;
0 commit comments