Skip to content

Commit 7d96b9f

Browse files
authored
Merge pull request #38 from tattersoftware/array-strict
Loose Comparison
2 parents a3e0ea2 + c153008 commit 7d96b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/EntityTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected function _has(string $tableName, ?array $keys = null)
213213
foreach ($this->attributes[$tableName] as $entity) {
214214
$key = is_array($entity) ? $entity[$this->primaryKey] : $entity->{$this->primaryKey};
215215

216-
if (in_array($key, $keys, true)) {
216+
if (in_array($key, $keys, false)) {
217217
$matched++;
218218

219219
if ($matched >= count($keys)) {

0 commit comments

Comments
 (0)