From 16cec2855dd02bff685dca605a1e72c4db89326c Mon Sep 17 00:00:00 2001 From: Norbert Micheel Date: Mon, 20 May 2024 16:04:11 +0200 Subject: [PATCH] rex_ydeploy class: stage can be null (#81) Co-authored-by: Gregor Harlan --- lib/ydeploy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)