Skip to content

Commit

Permalink
array as value is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 9, 2023
1 parent 1bc5ec9 commit 12e740e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Scope/Condition.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function onChangeModel(): void
// if we have a definitive equal condition set the value as default value for field
// new records will automatically get this value assigned for the field
// TODO: consider this when condition is part of OR scope
if ($this->operator === self::OPERATOR_EQUALS && !$this->value instanceof Expressionable) {
if ($this->operator === self::OPERATOR_EQUALS && !is_array($this->value) && !$this->value instanceof Expressionable) {
// key containing '/' means chained references and it is handled in toQueryArguments method
$field = $this->key;
if (is_string($field) && !str_contains($field, '/')) {
Expand Down

0 comments on commit 12e740e

Please sign in to comment.