{"record":{"id":"37b4055b332a18bc","repo":"filamentphp/filament","slug":"is-operator-can-only-be-used-with-select-constrain","errorCode":null,"errorMessage":"Is operator can only be used with select constraints.","messagePattern":"Is operator can only be used with select constraints\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/query-builder/src/Constraints/SelectConstraint/Operators/IsOperator.php","lineNumber":147,"sourceCode":"        // Security: settings arrive from the request payload and can be tampered with. A single\n        // select value must be a scalar, and a multiple select value must be a list of scalars;\n        // any other shape (e.g. a nested array) would reach `strval()` / `Arr::only()` and throw.\n        // Fail closed by discarding non-scalar values.\n        if ($isMultiple) {\n            return is_array($value)\n                ? array_values(array_filter($value, is_scalar(...)))\n                : [];\n        }\n\n        return is_scalar($value) ? $value : null;\n    }\n\n    public function getConstraint(): ?SelectConstraint\n    {\n        $constraint = parent::getConstraint();\n\n        if (! ($constraint instanceof SelectConstraint)) {\n            throw new LogicException('Is operator can only be used with select constraints.');\n        }\n\n        return $constraint;\n    }\n}\n","sourceCodeStart":129,"sourceCodeEnd":153,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/query-builder/src/Constraints/SelectConstraint/Operators/IsOperator.php#L129-L153","documentation":"Error \"Is operator can only be used with select constraints.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/query-builder/src/Constraints/SelectConstraint/Operators/IsOperator.php:147 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":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}