We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc75ed3 commit 8039260Copy full SHA for 8039260
src/Exercise/TheAttributesOfSuccess.php
@@ -33,6 +33,7 @@
33
use PhpSchool\PhpWorkshop\Result\Success;
34
use PhpSchool\PhpWorkshop\Solution\DirectorySolution;
35
use PhpSchool\PhpWorkshop\Solution\SolutionInterface;
36
+use PhpSchool\PhpWorkshop\Utils\System;
37
38
class TheAttributesOfSuccess extends AbstractExercise implements
39
ExerciseInterface,
@@ -73,7 +74,7 @@ public function getInitialCode(): SolutionInterface
73
74
public function getSolution(): SolutionInterface
75
{
76
return DirectorySolution::fromDirectory(
- (string) realpath(__DIR__ . '/../../exercises/the-attributes-of-success/solution'),
77
+ System::realpath(__DIR__ . '/../../exercises/the-attributes-of-success/solution')
78
);
79
}
80
0 commit comments