|
@@ -576,7 +576,7 @@ trait CollectionTrait
|
|
|
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);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|