Skip to content

Commit

Permalink
Merge branch 'develop' into RichardPerdaan-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardPerdaan authored May 8, 2020
2 parents c4d8a93 + b0673d2 commit b25dc1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Model/Consignment/AbstractConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,14 @@ public function isEuCountry()
'FR',
'DE',
'GR',
'HR',
'HU',
'IE',
'IT',
'LV',
'LT',
'LU',
'MT',
'PL',
'PT',
'RO',
Expand Down
10 changes: 6 additions & 4 deletions src/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1232,12 +1232,14 @@ public function prepend($value, $key = null)
/**
* Push an item onto the end of the collection.
*
* @param mixed $value
* @param mixed $values [optional]
* @return $this
*/
public function push($value)
public function push(...$values)
{
$this->offsetSet(null, $value);
foreach ($values as $value) {
$this->items[] = $value;
}

return $this;
}
Expand Down Expand Up @@ -1442,7 +1444,7 @@ public function chunk($size)
* @param callable|null $callback
* @return static
*/
public function sort(callable $callback = null)
public function sort($callback = null)
{
$items = $this->items;

Expand Down

0 comments on commit b25dc1b

Please sign in to comment.