Skip to content

Commit d339a74

Browse files
committed
Added guard clause to exit/return if running in CLI.
1 parent a566a9e commit d339a74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

33
namespace phpish\app;
4+
5+
if ('cli' === PHP_SAPI) return;
46

57
function env($custom_envs=[], $default='production')
68
{

0 commit comments

Comments
 (0)