{"record":{"id":"897d6d162c9afb42","repo":"octobercms/october","slug":"the-static-method-method-on-class-does-not-r","errorCode":null,"errorMessage":"The static method ':method()' on :class does not return a valid options array.","messagePattern":"The static method ':method\\(\\)' on :class does not return a valid options array\\.","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/backend/classes/FilterScope.php","lineNumber":59,"sourceCode":"        return $scopeOptions;\n    }\n\n    /**\n     * getOptionsFromModelAsString where options are an explicit method reference\n     */\n    protected function getOptionsFromModelAsString($model, string $methodName)\n    {\n        // Calling via ClassName::method\n        if (\n            strpos($methodName, '::') !== false &&\n            ($staticMethod = explode('::', $methodName)) &&\n            count($staticMethod) === 2 &&\n            is_callable($staticMethod)\n        ) {\n            $scopeOptions = $staticMethod($model, $this);\n\n            if (!is_array($scopeOptions)) {\n                throw new SystemException(Lang::get('backend::lang.field.options_static_method_invalid_value', [\n                    'class' => $staticMethod[0],\n                    'method' => $staticMethod[1]\n                ]));\n            }\n        }\n        // Calling via $model->method\n        else {\n            if (!$this->objectMethodExists($model, $methodName)) {\n                throw new SystemException(Lang::get('backend::lang.filter.options_method_not_exists', [\n                    'model' => get_class($model),\n                    'method' => $methodName,\n                    'filter' => $this->fieldName\n                ]));\n            }\n\n            $scopeOptions = $model->$methodName($this);\n        }\n","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/classes/FilterScope.php#L41-L77","documentation":"Error \"The static method ':method()' on :class does not return a valid options array.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/classes/FilterScope.php:59 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}