yiisoft/yii2 · error · yii\base\InvalidArgumentException
Operator '$operator' requires three operands.
Error message
Operator '$operator' requires three operands.
What it means
Error "Operator '$operator' requires three operands." thrown in yiisoft/yii2.
Source
Thrown at framework/db/conditions/BetweenColumnsCondition.php:118
return $this->intervalStartColumn;
}
/**
* @return string|ExpressionInterface|Query
*/
public function getIntervalEndColumn()
{
return $this->intervalEndColumn;
}
/**
* {@inheritdoc}
* @throws InvalidArgumentException if wrong number of operands have been given.
*/
public static function fromArrayDefinition($operator, $operands)
{
if (!isset($operands[0], $operands[1], $operands[2])) {
throw new InvalidArgumentException("Operator '$operator' requires three operands.");
}
return new static($operands[0], $operator, $operands[1], $operands[2]);
}
}
View on GitHub (pinned to 66f00d18a2)
When it happens
Trigger: Thrown at framework/db/conditions/BetweenColumnsCondition.php:118 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of yiisoft/yii2@66f00d18a2 (2026-08-17).
Data as JSON: /api/errors/700625b51e15dc7c.
Report an issue: GitHub.