Skip to content

Commit

Permalink
Reduce notices
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Jan 29, 2019
1 parent 1f887c5 commit 2b27164
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ public function populateJoinedRelations($model, array $row)
continue;
}
foreach ($this->join as $join) {
$name = array_shift(array_keys($join));
$keys = array_keys($join);
$name = array_shift($keys);
$closure = array_shift($join);

if (is_int($name)) {
Expand Down

0 comments on commit 2b27164

Please sign in to comment.