Skip to content

Commit

Permalink
Remove phpstan-specific annotation
Browse files Browse the repository at this point in the history
This is a direct consequence of doctrine/collections#274
  • Loading branch information
greg0ire committed Aug 11, 2021
1 parent e16a768 commit e2f54f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/PersistentCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
* Similarly, if you remove entities from a collection that is part of a one-many
* mapping this will only result in the nulling out of the foreign keys on flush.
*
* @phpstan-template TKey
* @psalm-template TKey of array-key
* @psalm-template T
* @template-implements Collection<TKey,T>
Expand Down
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ parameters:
path: lib/Doctrine/ORM/PersistentCollection.php

-
message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:slice\\(\\) should return array\\<TKey, T\\> but returns array\\.$#"
message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:slice\\(\\) should return array\\<TKey of \\(int\\|string\\), T\\> but returns array\\.$#"
count: 2
path: lib/Doctrine/ORM/PersistentCollection.php

Expand Down

0 comments on commit e2f54f6

Please sign in to comment.