Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Update MultipleRelation.php
Browse files Browse the repository at this point in the history
Add 3rd argument (`true`) to `in_array` function call
  • Loading branch information
vvval authored Mar 13, 2019
1 parent cee778c commit 778f19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Spiral/ORM/Entities/Relations/MultipleRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected function initInstances(): self
$iterator = new RecordIterator($this->data, $this->class, $this->orm);

foreach ($iterator as $item) {
if (in_array($item, $this->instances)) {
if (in_array($item, $this->instances, true)) {
//Skip duplicates
continue;
}
Expand All @@ -199,4 +199,4 @@ protected function initInstances(): self
* @return array
*/
abstract protected function loadRelated(): array;
}
}

0 comments on commit 778f19b

Please sign in to comment.