Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed May 20, 2024
1 parent 90fdd49 commit aefc504
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ydeploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ private function __construct()

$info = rex_file::getCache($path);

$this->host = rex_type::string($info['host'] ?? '');
$this->stage = rex_type::string($info['stage'] ?? '');
$this->branch = rex_type::string($info['branch'] ?? '');
$this->commit = rex_type::string($info['commit'] ?? '');
$this->host = rex_type::string($info['host']);
$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)
->setTimezone(new DateTimeZone(date_default_timezone_get()));
}
Expand Down

0 comments on commit aefc504

Please sign in to comment.