Bump PHPStan to level 9
This commit is contained in:
parent
9abfb29af7
commit
f21bb125c5
6 changed files with 24 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ use Iterator;
|
|||
use IteratorAggregate;
|
||||
|
||||
/**
|
||||
* @implements IteratorAggregate<TItem>
|
||||
* @template TItem
|
||||
*/
|
||||
class Collection implements Countable, IteratorAggregate
|
||||
|
|
@ -26,6 +27,9 @@ class Collection implements Countable, IteratorAggregate
|
|||
return count($this->items);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return self<TItem>
|
||||
*/
|
||||
public function filter(callable $callback): self
|
||||
{
|
||||
return new static(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue