Skip to content

Commit

Permalink
rex_ydeploy class: stage can be null (#81)
Browse files Browse the repository at this point in the history
Co-authored-by: Gregor Harlan <[email protected]>
  • Loading branch information
tyrant88 and gharlan committed May 20, 2024
1 parent 52e4ef6 commit 16cec28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ydeploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16cec28

Please sign in to comment.