Skip to content

Commit 569883c

Browse files
committed
Test: Try to figure out why functional tests fail
1 parent e185eb9 commit 569883c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Neos.Flow/Classes/Security/Authorization/Privilege/Entity/Doctrine/PropertyConditionGenerator.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ public function in($operandDefinition)
204204
if (is_array($this->operand) === false && ($this->operand instanceof \Traversable) === false) {
205205
throw new InvalidPolicyException(sprintf('The "in" operator needs an array as operand! Got: "%s"', $this->operand), 1416313526);
206206
}
207-
if (!is_array($this->operandDefinition)) {
208-
throw new \Exception('Cannot assign iterable operands to non-array operand definition', 1743959938);
209-
}
210207
foreach ($this->operand as $iterator => $singleOperandValueDefinition) {
211208
$this->operandDefinition['inOperandValue' . $iterator] = $singleOperandValueDefinition;
212209
}
@@ -512,9 +509,6 @@ protected function getConstraintStringForSimpleProperty(DoctrineSqlFilter $sqlFi
512509
}
513510
$parameter = implode(',', $parameters);
514511
} elseif (!($this->getRawParameterValue($operandDefinition) === null || ($this->operator === 'in' && $this->getRawParameterValue($operandDefinition) === []))) {
515-
if (!is_string($operandDefinition)) {
516-
throw new \Exception('SQL filter parameters must be of type string, ' . get_debug_type($operandDefinition) . ' given.', 1743929393);
517-
}
518512
$parameter = $sqlFilter->getParameter($operandDefinition);
519513
}
520514
} catch (\InvalidArgumentException $exception) {

0 commit comments

Comments
 (0)