Commit c47f64a 1 parent 4ea1896 commit c47f64a Copy full SHA for c47f64a
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ public static function bind($class): void
30
30
$ reflection = new \ReflectionClass ($ class );
31
31
$ properties = $ reflection ->getProperties (\ReflectionProperty::IS_PUBLIC );
32
32
33
+ // Clear the matched properties for the given class before adding new ones
34
+ self ::$ matchedProperties [get_class ($ class )] = [];
35
+
33
36
foreach ($ properties as $ property ) {
34
37
$ name = $ property ->getName ();
35
38
$ type = $ property ->getType ()?->getName() ?? null ;
36
39
37
- // Clear the matched properties for the given class before adding new ones
38
- self ::$ matchedProperties [get_class ($ class )] = [];
39
-
40
40
// Check if the property has the AutoBindProperty attribute
41
41
$ bindData = $ property ->getAttributes (AutoBindProperty::class);
42
42
You can’t perform that action at this time.
0 commit comments