Skip to content

Commit

Permalink
Response\Collection __construct array type for
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Aug 23, 2014
1 parent 8b96a58 commit 082c717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Response/Collection.php
Expand Up @@ -21,11 +21,11 @@ class Collection implements \Countable
protected $elements = array();

/**
* @param $elements
* @param array $elements
* @param $total
* @param $loadCallback
*/
public function __construct($elements, $total, $loadCallback)
public function __construct(array $elements = array(), $total, $loadCallback)
{
$this->elements = $elements;
$this->total = $total;
Expand Down

0 comments on commit 082c717

Please sign in to comment.