Skip to content

Commit

Permalink
Merge c153008 into a3e0ea2
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Jul 14, 2022
2 parents a3e0ea2 + c153008 commit f261a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/EntityTrait.php
Expand Up @@ -213,7 +213,7 @@ protected function _has(string $tableName, ?array $keys = null)
foreach ($this->attributes[$tableName] as $entity) {
$key = is_array($entity) ? $entity[$this->primaryKey] : $entity->{$this->primaryKey};

if (in_array($key, $keys, true)) {
if (in_array($key, $keys, false)) {
$matched++;

if ($matched >= count($keys)) {
Expand Down

0 comments on commit f261a0b

Please sign in to comment.