Skip to content

Commit

Permalink
Override static::with() so we can have autocomplete working in IDE.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 31, 2019
1 parent b3e0d19 commit 7057e09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,16 @@ public function walk(callable ...$callbacks): BaseInterface
return new Collection($this->run(new Walk(...$callbacks)));
}

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public static function with($data = []): BaseInterface
{
return parent::with($data);
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 7057e09

Please sign in to comment.