Skip to content

Commit 3fc4e44

Browse files
committed
avoid warning when ENV is not set
1 parent 3d96ef3 commit 3fc4e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ public function route(): void
7272
*/
7373
public function isDev(): bool
7474
{
75-
return $_ENV['MEH_ENV'] === 'dev';
75+
return ($_ENV['MEH_ENV'] ?? '') === 'dev';
7676
}
7777
}

0 commit comments

Comments
 (0)