File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 88use PhpSchool \PhpWorkshop \Exercise \ProvidesSolution ;
99use PhpSchool \PhpWorkshop \Factory \ResultRendererFactory ;
1010use PhpSchool \PhpWorkshop \Output \OutputInterface ;
11+ use PhpSchool \PhpWorkshop \Result \ResultGroupInterface ;
1112use PhpSchool \PhpWorkshop \Result \SuccessInterface ;
1213use PhpSchool \PSX \SyntaxHighlighter ;
1314use PhpSchool \PhpWorkshop \Exercise \ExerciseInterface ;
@@ -96,7 +97,7 @@ public function render(
9697 $ failures = [];
9798 foreach ($ results as $ result ) {
9899 if ($ result instanceof SuccessInterface
99- || ($ result instanceof ResultAggregator && $ result ->isSuccessful ())
100+ || ($ result instanceof ResultGroupInterface && $ result ->isSuccessful ())
100101 ) {
101102 $ successes [] = sprintf (' ✔ Check: %s ' , $ result ->getCheckName ());
102103 } else {
You can’t perform that action at this time.
0 commit comments