Skip to content

Commit

Permalink
Merge pull request #553 from skipperbent/v3-development
Browse files Browse the repository at this point in the history
Version 3.19.4
  • Loading branch information
skipperbent committed May 27, 2024
2 parents 3752b00 + 3cbf9fa commit 5feb7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Collections/ModelCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function limit(int $limit)
*/
public function removeByFilter(string $key, string $value): self
{
$this->each(function ($item, $key) {
$this->each(function ($item, $key) use ($value) {
if ($item->{$key} === $value) {
$this->remove($key);
}
Expand Down

0 comments on commit 5feb7ce

Please sign in to comment.