Skip to content

Commit

Permalink
boyscouting
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Aug 26, 2024
1 parent 41b73e5 commit d7bf740
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PropertyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ public function pull()

public function validate()
{
$properties = $this->keys();
$rules = collect($this->component->getRules())->filter(
fn ($rule, $key) => in_array($key, $properties)
fn ($rule, $key) => in_array($key, $this->keys())
)->toArray();

return $this->component->validate($rules);
Expand Down

0 comments on commit d7bf740

Please sign in to comment.