Added stricter phpstan checks

This commit is contained in:
Jan Böhmer 2023-06-14 23:14:49 +02:00
parent 78b0e1bf7e
commit 2f46fbfc7a
4 changed files with 69 additions and 2 deletions

View file

@ -94,6 +94,7 @@ class InstanceOfConstraint extends AbstractConstraint
$expressions = [];
/** @phpstan-ignore-next-line */
if ($this->operator === 'ANY' || $this->operator === 'NONE') {
foreach($this->value as $value) {
//We can not use a parameter here, as this is the only way to pass the FCQN to the query (via binded params, we would need to use ClassMetaData). See: https://github.com/doctrine/orm/issues/4462