Skip to content

Commit

Permalink
Merge ff6f5a4 into db3cbe3
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 16, 2019
2 parents db3cbe3 + ff6f5a4 commit 0d24774
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Task/Development/SemVer.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,14 @@ protected function dump()
if (empty($this->path)) {
return true;
}
extract($this->version);
$semver = sprintf(self::SEMVER, $major, $minor, $patch, $special, $metadata);
$semver = sprintf(
self::SEMVER,
$this->version['major'],
$this->version['minor'],
$this->version['patch'],
$this->version['special'],
$this->version['metadata']
);
if (is_writeable($this->path) === false || file_put_contents($this->path, $semver) === false) {
throw new TaskException($this, 'Failed to write semver file.');
}
Expand Down

0 comments on commit 0d24774

Please sign in to comment.