From 1f7816c917266bf7932ad7c8b22750a0abfeaf15 Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Sun, 13 Aug 2023 11:01:31 +0800 Subject: [PATCH] When env was no set then dont try to collect vars from it (cherry picked from commit fa8ad15fdd691fb4ea5db431062e89b512a9d526) --- src/Processor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Processor.php b/src/Processor.php index df720b4..393873b 100644 --- a/src/Processor.php +++ b/src/Processor.php @@ -229,6 +229,9 @@ class Processor */ protected function initEnv(): void { + if (!isset($this->envFile)) { + return; + } $content = file_get_contents(FileSystem::normalizePath($this->envFile)); $content = json_decode($content, flags: JSON_THROW_ON_ERROR); if (!property_exists($content, 'environment') || empty($content?->environment)) {