Skip to content

Commit

Permalink
Remove zero entry on array_fill for PHP 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
squigg committed Oct 9, 2016
1 parent 447fc81 commit 04887aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Fixtures/ListMessagesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ class ListMessagesResult

/**
* ListMessagesResult constructor.
* @param int $count
*/
public function __construct($count = 1)
{

$this->count = $count;
}

public function getQueueMessages()
{
if ($this->count == 0) return [];
return array_fill(0, $this->count, new MicrosoftAzureQueueMessage());
}
}

0 comments on commit 04887aa

Please sign in to comment.