Skip to content

Commit 63635ca

Browse files
committed
Remove PHPStan error suppressions
1 parent 1865717 commit 63635ca

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Persisters/Collection/OneToManyPersister.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ public function count(PersistentCollection $collection)
103103
// only works with single id identifier entities. Will throw an
104104
// exception in Entity Persisters if that is not the case for the
105105
// 'mappedBy' field.
106-
// @phpstan-ignore arguments.count
107106
$criteria = Criteria::create(true)->where(Criteria::expr()->eq($mapping['mappedBy'], $collection->getOwner()));
108107

109108
return $persister->count($criteria);
@@ -136,7 +135,6 @@ public function containsKey(PersistentCollection $collection, $key)
136135
// only works with single id identifier entities. Will throw an
137136
// exception in Entity Persisters if that is not the case for the
138137
// 'mappedBy' field.
139-
// @phpstan-ignore arguments.count
140138
$criteria = Criteria::create(true);
141139

142140
$criteria->andWhere(Criteria::expr()->eq($mapping['mappedBy'], $collection->getOwner()));
@@ -160,7 +158,6 @@ public function contains(PersistentCollection $collection, $element)
160158
// only works with single id identifier entities. Will throw an
161159
// exception in Entity Persisters if that is not the case for the
162160
// 'mappedBy' field.
163-
// @phpstan-ignore arguments.count
164161
$criteria = Criteria::create(true)->where(Criteria::expr()->eq($mapping['mappedBy'], $collection->getOwner()));
165162

166163
return $persister->exists($element, $criteria);

0 commit comments

Comments
 (0)