fix(helpers): Initialize command variable in parseCommandFromMagicEnvVariable
This commit is contained in:
parent
a402c28606
commit
f1b98f5ce9
1 changed files with 1 additions and 0 deletions
|
|
@ -748,6 +748,7 @@ function parseCommandFromMagicEnvVariable(Str|string $key): Stringable
|
||||||
{
|
{
|
||||||
$value = str($key);
|
$value = str($key);
|
||||||
$count = substr_count($value->value(), '_');
|
$count = substr_count($value->value(), '_');
|
||||||
|
$command = null;
|
||||||
if ($count === 2) {
|
if ($count === 2) {
|
||||||
if ($value->startsWith('SERVICE_FQDN') || $value->startsWith('SERVICE_URL')) {
|
if ($value->startsWith('SERVICE_FQDN') || $value->startsWith('SERVICE_URL')) {
|
||||||
// SERVICE_FQDN_UMAMI
|
// SERVICE_FQDN_UMAMI
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue