diff --git a/lib/Doctrine/Common/Collections/AbstractLazyCollection.php b/lib/Doctrine/Common/Collections/AbstractLazyCollection.php index 4115df8af..cfdd144c0 100644 --- a/lib/Doctrine/Common/Collections/AbstractLazyCollection.php +++ b/lib/Doctrine/Common/Collections/AbstractLazyCollection.php @@ -7,8 +7,8 @@ /** * Lazy collection that is backed by a concrete collection * - * @template TKey of array-key - * @template T + * @psalm-template TKey of array-key + * @psalm-template T * @template-implements Collection */ abstract class AbstractLazyCollection implements Collection diff --git a/lib/Doctrine/Common/Collections/ArrayCollection.php b/lib/Doctrine/Common/Collections/ArrayCollection.php index f6f0c50b7..616c9c7e2 100644 --- a/lib/Doctrine/Common/Collections/ArrayCollection.php +++ b/lib/Doctrine/Common/Collections/ArrayCollection.php @@ -32,8 +32,8 @@ * serialize a collection use {@link toArray()} and reconstruct the collection * manually. * - * @template TKey of array-key - * @template T + * @psalm-template TKey of array-key + * @psalm-template T * @template-implements Collection * @template-implements Selectable */ diff --git a/lib/Doctrine/Common/Collections/Collection.php b/lib/Doctrine/Common/Collections/Collection.php index 48ec6cef3..adf4a3be2 100644 --- a/lib/Doctrine/Common/Collections/Collection.php +++ b/lib/Doctrine/Common/Collections/Collection.php @@ -24,8 +24,8 @@ * position unless you explicitly positioned it before. Prefer iteration with * external iterators. * - * @template TKey of array-key - * @template T + * @psalm-template TKey of array-key + * @psalm-template T * @template-extends IteratorAggregate * @template-extends ArrayAccess */ @@ -243,7 +243,7 @@ public function forAll(Closure $p); * * @return Collection * - * @template U + * @psalm-template U * @psalm-param Closure(T=):U $func * @psalm-return Collection */ diff --git a/lib/Doctrine/Common/Collections/Selectable.php b/lib/Doctrine/Common/Collections/Selectable.php index 692037b55..0b0a4e3fd 100644 --- a/lib/Doctrine/Common/Collections/Selectable.php +++ b/lib/Doctrine/Common/Collections/Selectable.php @@ -14,8 +14,8 @@ * this API can implement efficient database access without having to ask the * EntityManager or Repositories. * - * @template TKey as array-key - * @template T + * @psalm-template TKey as array-key + * @psalm-template T */ interface Selectable {