From d7bf7406cbab696a4e0ba0525c1ce45343c60e75 Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Mon, 26 Aug 2024 15:23:06 +0200 Subject: [PATCH] boyscouting --- src/PropertyCollection.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PropertyCollection.php b/src/PropertyCollection.php index 6dd7eae..5391f21 100644 --- a/src/PropertyCollection.php +++ b/src/PropertyCollection.php @@ -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);