Skip to content

Commit 8039260

Browse files
committed
Use util
1 parent cc75ed3 commit 8039260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Exercise/TheAttributesOfSuccess.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
use PhpSchool\PhpWorkshop\Result\Success;
3434
use PhpSchool\PhpWorkshop\Solution\DirectorySolution;
3535
use PhpSchool\PhpWorkshop\Solution\SolutionInterface;
36+
use PhpSchool\PhpWorkshop\Utils\System;
3637

3738
class TheAttributesOfSuccess extends AbstractExercise implements
3839
ExerciseInterface,
@@ -73,7 +74,7 @@ public function getInitialCode(): SolutionInterface
7374
public function getSolution(): SolutionInterface
7475
{
7576
return DirectorySolution::fromDirectory(
76-
(string) realpath(__DIR__ . '/../../exercises/the-attributes-of-success/solution'),
77+
System::realpath(__DIR__ . '/../../exercises/the-attributes-of-success/solution')
7778
);
7879
}
7980

0 commit comments

Comments
 (0)