Skip to content

Commit

Permalink
Fix PHP notice on changelog sort command (yiisoft#12628)
Browse files Browse the repository at this point in the history
```
PHP Notice 'yii\base\ErrorException' with message 'Only variables should be passed by reference'

in ../build/controllers/ReleaseController.php:321
```
  • Loading branch information
rob006 authored and cebe committed Sep 28, 2016
1 parent 4f17cd0 commit 2258821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/controllers/ReleaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public function actionSortChangelog(array $what)
}
$this->validateWhat($what, ['framework', 'ext'], false);

$version = reset($this->getNextVersions($this->getCurrentVersions($what), self::PATCH));
$version = array_values($this->getNextVersions($this->getCurrentVersions($what), self::PATCH))[0];
$this->stdout('sorting CHANGELOG of ');
$this->stdout(reset($what), Console::BOLD);
$this->stdout(" for version ");
Expand Down

0 comments on commit 2258821

Please sign in to comment.