Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Differential
D1702
Diff 4576
src/app/Console/ObjectRelationListCommand.php
Changeset View
I think instead of ->each() you can use foreach for all above types and array. Also, \Illuminate\Database\Eloquent\Relations\Relation does not implement each() method itself, so I guess the check is not right. I'm not sure but mabe we could use is_countable() here as replacement for these three IFs.