Skip to content

Commit

Permalink
Don't initialize an array to the empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Dec 21, 2016
1 parent 2005dc0 commit cf6eed2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/classes/phing/BuildFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private function cleanBuffer($buffer)
*/
protected function configureProject($filename)
{
$this->logBuffer = "";
$this->logBuffer = array();
$this->fullLogBuffer = "";
$this->project = new Project();
$this->project->init();
Expand All @@ -228,10 +228,9 @@ protected function configureProject($filename)
*/
protected function executeTarget($targetName)
{

$this->outBuffer = "";
$this->errBuffer = "";
$this->logBuffer = "";
$this->logBuffer = array();
$this->fullLogBuffer = "";
$this->buildException = null;
$this->project->executeTarget($targetName);
Expand Down

0 comments on commit cf6eed2

Please sign in to comment.