Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Apr 17, 2024
1 parent 1efd146 commit 5b11f0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Collection/AuditedCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public function __construct(

/**
* @return void
*
* @phpstan-ignore-next-line https://github.com/phpstan/phpstan-doctrine/pull/560
*/
#[\ReturnTypeWillChange]
public function add(mixed $element)
Expand Down Expand Up @@ -295,6 +297,8 @@ public function exists(\Closure $p)
*
* @phpstan-param \Closure(T, TKey):bool $p
* @phpstan-return Collection<TKey, T>
*
* @psalm-suppress MoreSpecificImplementedParamType https://github.com/doctrine/collections/pull/411
*/
#[\ReturnTypeWillChange]
public function filter(\Closure $p)
Expand Down Expand Up @@ -337,6 +341,8 @@ public function map(\Closure $func)
*
* @phpstan-param \Closure(TKey, T):bool $p
* @phpstan-return array{0: Collection<TKey, T>, 1: Collection<TKey, T>}
*
* @psalm-suppress MoreSpecificImplementedParamType https://github.com/doctrine/collections/pull/411
*/
#[\ReturnTypeWillChange]
public function partition(\Closure $p)
Expand Down

0 comments on commit 5b11f0d

Please sign in to comment.