diff --git a/lib/ydeploy.php b/lib/ydeploy.php index 5c730ec..3e77f1c 100644 --- a/lib/ydeploy.php +++ b/lib/ydeploy.php @@ -26,7 +26,7 @@ private function __construct() $info = rex_file::getCache($path); $this->host = rex_type::string($info['host']); - $this->stage = rex_type::string($info['stage']); + $this->stage = rex_type::nullOrString($info['stage']); $this->branch = rex_type::string($info['branch']); $this->commit = rex_type::string($info['commit']); $this->timestamp = rex_type::instanceOf(DateTimeImmutable::createFromFormat('U', $info['timestamp']), DateTimeImmutable::class)