{"record":{"id":"700625b51e15dc7c","repo":"yiisoft/yii2","slug":"operator-operator-requires-three-operands","errorCode":null,"errorMessage":"Operator '$operator' requires three operands.","messagePattern":"Operator '\\$operator' requires three operands\\.","errorType":"exception","errorClass":"yii\\base\\InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"framework/db/conditions/BetweenColumnsCondition.php","lineNumber":118,"sourceCode":"        return $this->intervalStartColumn;\n    }\n\n    /**\n     * @return string|ExpressionInterface|Query\n     */\n    public function getIntervalEndColumn()\n    {\n        return $this->intervalEndColumn;\n    }\n\n    /**\n     * {@inheritdoc}\n     * @throws InvalidArgumentException if wrong number of operands have been given.\n     */\n    public static function fromArrayDefinition($operator, $operands)\n    {\n        if (!isset($operands[0], $operands[1], $operands[2])) {\n            throw new InvalidArgumentException(\"Operator '$operator' requires three operands.\");\n        }\n\n        return new static($operands[0], $operator, $operands[1], $operands[2]);\n    }\n}\n","sourceCodeStart":100,"sourceCodeEnd":124,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/db/conditions/BetweenColumnsCondition.php#L100-L124","documentation":"Error \"Operator '$operator' requires three operands.\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/db/conditions/BetweenColumnsCondition.php:118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}