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 06a8051 commit a587f51Copy full SHA for a587f51
1 file changed
src/ProjectGlobals.php
@@ -9,11 +9,13 @@ class ProjectGlobals
9
{
10
public static function getProjectRoot(): string
11
12
- return realpath(__DIR__ . '/../');
+ return realpath(__DIR__ . '/../')
13
+ ?: throw new Error('Unable to locate project root');
14
}
15
16
public static function getPublicRoot(): string
17
- return realpath(__DIR__ . '/../public') ?: throw new Error('eh');
18
+ return realpath(__DIR__ . '/../public')
19
+ ?: throw new Error('Unable to locate public root');
20
21
0 commit comments