Skip to content

Commit

Permalink
Try out collections 2
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Sep 28, 2022
1 parent 6e8afee commit e9b281b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"composer-runtime-api": "^2",
"ext-ctype": "*",
"doctrine/cache": "^1.12.1 || ^2.1.1",
"doctrine/collections": "^1.5",
"doctrine/collections": "^1.5 || 2.0.x@dev",
"doctrine/common": "^3.0.3",
"doctrine/dbal": "^2.13.1 || ^3.2",
"doctrine/deprecations": "^0.5.3 || ^1",
Expand Down
7 changes: 3 additions & 4 deletions lib/Doctrine/ORM/LazyCriteriaCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ public function isEmpty()
}

/**
* Do an optimized search of an element
* {@inheritDoc}
*
* @param object $element
* @psalm-param TValue $element
* @template TMaybeContained
*
* @return bool
* Do an optimized search of an element
*/
public function contains($element)
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Doctrine/ORM/PersistentCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ public function containsKey($key): bool

/**
* {@inheritdoc}
*
* @template TMaybeContained
*/
public function contains($element): bool
{
Expand Down

0 comments on commit e9b281b

Please sign in to comment.