Bump PHPStan to level 9

This commit is contained in:
Oliver Davies 2025-05-04 22:37:31 +01:00
parent 9abfb29af7
commit f21bb125c5
6 changed files with 24 additions and 3 deletions

View file

@ -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(