Skip to content

Commit

Permalink
Fix function name used by Changelog task
Browse files Browse the repository at this point in the history
  • Loading branch information
cboyden committed Dec 13, 2016
1 parent aa55d66 commit ac55e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Task/Development/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ function ($i) {

/** @var \Robo\Result $result */
// trying to append to changelog for today
$result = $this->collectionBuilder()->taskReplace($this->filename)
$result = $this->collectionBuilder()->taskReplaceInFile($this->filename)
->from($ver)
->to($text)
->run();

if (!isset($result['replaced']) || !$result['replaced']) {
$result = $this->collectionBuilder()->taskReplace($this->filename)
$result = $this->collectionBuilder()->taskReplaceInFile($this->filename)
->from($this->anchor)
->to($this->anchor . "\n\n" . $text)
->run();
Expand Down

0 comments on commit ac55e3f

Please sign in to comment.