Skip to content

Commit

Permalink
Merge pull request #10725 from zemiacsik/patch-ArrayList-fix
Browse files Browse the repository at this point in the history
FIX property_exists() parameters mixup
  • Loading branch information
GuySartorelli authored Mar 20, 2023
2 parents 77cbe20 + d60af9d commit e47eedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/ArrayList.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ public function canFilterBy($by)

$firstRecord = $this->first();

return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($by, $firstRecord ?? '');
return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($firstRecord, $by ?? '');
}

/**
Expand Down

0 comments on commit e47eedf

Please sign in to comment.