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 8
8
use PhpSchool \PhpWorkshop \Exercise \ProvidesSolution ;
9
9
use PhpSchool \PhpWorkshop \Factory \ResultRendererFactory ;
10
10
use PhpSchool \PhpWorkshop \Output \OutputInterface ;
11
+ use PhpSchool \PhpWorkshop \Result \ResultGroupInterface ;
11
12
use PhpSchool \PhpWorkshop \Result \SuccessInterface ;
12
13
use PhpSchool \PSX \SyntaxHighlighter ;
13
14
use PhpSchool \PhpWorkshop \Exercise \ExerciseInterface ;
@@ -96,7 +97,7 @@ public function render(
96
97
$ failures = [];
97
98
foreach ($ results as $ result ) {
98
99
if ($ result instanceof SuccessInterface
99
- || ($ result instanceof ResultAggregator && $ result ->isSuccessful ())
100
+ || ($ result instanceof ResultGroupInterface && $ result ->isSuccessful ())
100
101
) {
101
102
$ successes [] = sprintf (' ✔ Check: %s ' , $ result ->getCheckName ());
102
103
} else {
You can’t perform that action at this time.
0 commit comments