Skip to content

Commit

Permalink
Revert "[8.x] Fix Eager loading partially nullable morphTo relations (l…
Browse files Browse the repository at this point in the history
…aravel#36129)"

This reverts commit 79b98fe.
  • Loading branch information
abdallhsamy authored Feb 9, 2021
1 parent a6680d9 commit ac5a67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Relations/MorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ protected function gatherKeysByType($type, $keyType)
? array_keys($this->dictionary[$type])
: array_map(function ($modelId) {
return (string) $modelId;
}, array_filter(array_keys($this->dictionary[$type])));
}, array_keys($this->dictionary[$type]));
}

/**
Expand Down

0 comments on commit ac5a67c

Please sign in to comment.