wip: dynamic services fields
This commit is contained in:
1 parent
7003c0d81b
commit
6bd483d768
21 files changed
+634
-39
No files matched your search
@@ -211,7 +211,7 @@ class CompositeCondition implements FieldConditionInterface
|
||||
{
|
||||
$validOperators = [self::OPERATOR_AND, self::OPERATOR_OR, self::OPERATOR_NOT];
|
||||
|
||||
if (!in_array($operator, $validOperators, true)) {
|
||||
if (false === in_array($operator, $validOperators, true)) {
|
||||
throw new \InvalidArgumentException(sprintf('Invalid operator "%s". Valid operators: %s', $operator, implode(', ', $validOperators)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user