File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ class Checker implements CheckerInterface
1414 /**
1515 * @inheritdoc
1616 */
17- public function fulfills ($ argument1 , TypeInterface $ requirement )
17+ public function fulfills ($ element , TypeInterface $ requirement )
1818 {
19- return new Result ( true , [] );
19+ return $ requirement -> check ( $ element );
2020 }
2121
2222}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function check($value)
4545 foreach ($ value as $ item ) {
4646 $ result = $ this ->child ->check ($ item );
4747
48- $ valid &= $ result ->isValid ();
48+ $ valid = $ valid && $ result ->isValid ();
4949 $ errors += $ result ->getErrors ();
5050 }
5151
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function check($value)
4040 }
4141
4242 $ result = $ child ->check ($ value [$ key ]);
43- $ valid &= $ result ->isValid ();
43+ $ valid = $ valid && $ result ->isValid ();
4444 $ errors += $ result ->getErrors ();
4545 }
4646
You can’t perform that action at this time.
0 commit comments