|
@@ -525,7 +525,7 @@ trait CollectionTrait
|
|
|
* {@inheritDoc}
|
|
* {@inheritDoc}
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
- public function through(callable $handler)
|
|
|
|
|
|
|
+ public function through(callable $handler)
|
|
|
{
|
|
{
|
|
|
$result = $handler($this);
|
|
$result = $handler($this);
|
|
|
return $result instanceof CollectionInterface ? $result: new Collection($result);
|
|
return $result instanceof CollectionInterface ? $result: new Collection($result);
|