Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13 from sanmai/pipelinev1
Browse files Browse the repository at this point in the history
Preparing to upgrade the pipeline to v.2
  • Loading branch information
sanmai committed Apr 2, 2018
2 parents df92dac + 204f907 commit 27932f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LazyLINQ/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Collection implements Interfaces\Collection
*
* @param \Traversable|null $input
*
* @deprecated
* @private
*/
public function __construct(\Traversable $input = null)
{
Expand All @@ -59,7 +59,7 @@ public static function from($source, ...$args)

private function replace(callable $func)
{
$this->pipeline->map(static::from($func, clone $this->pipeline)->pipeline);
$this->pipeline = new \Pipeline\Standard($func($this->pipeline));

return $this;
}
Expand Down

0 comments on commit 27932f2

Please sign in to comment.