File tree 3 files changed +4
-4
lines changed
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
14
14
/**
15
15
* @inheritdoc
16
16
*/
17
- public function fulfills ($ argument1 , TypeInterface $ requirement )
17
+ public function fulfills ($ element , TypeInterface $ requirement )
18
18
{
19
- return new Result ( true , [] );
19
+ return $ requirement -> check ( $ element );
20
20
}
21
21
22
22
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function check($value)
45
45
foreach ($ value as $ item ) {
46
46
$ result = $ this ->child ->check ($ item );
47
47
48
- $ valid &= $ result ->isValid ();
48
+ $ valid = $ valid && $ result ->isValid ();
49
49
$ errors += $ result ->getErrors ();
50
50
}
51
51
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function check($value)
40
40
}
41
41
42
42
$ result = $ child ->check ($ value [$ key ]);
43
- $ valid &= $ result ->isValid ();
43
+ $ valid = $ valid && $ result ->isValid ();
44
44
$ errors += $ result ->getErrors ();
45
45
}
46
46
You can’t perform that action at this time.
0 commit comments