{"record":{"id":"a8fcc54fea7a9791","repo":"Leantime/leantime","slug":"required-parameter-missing-name","errorCode":null,"errorMessage":"Required Parameter Missing: $name","messagePattern":"Required Parameter Missing: \\$name","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Domain/Api/Controllers/Jsonrpc.php","lineNumber":437,"sourceCode":"     *\n     *\n     * @throws Exception\n     */\n    private function prepareParameters(array $params, array $methodParams): array\n    {\n        $filtered_parameters = [];\n\n        // matches params, params that don't match are ignored\n        foreach ($methodParams as $methodParam) {\n            $required = ! $methodParam->isDefaultValueAvailable();\n            $position = $methodParam->getPosition();\n            $name = $methodParam->name;\n            $type = $methodParam->getType();\n\n            // check if param is there\n            if (! in_array($name, array_keys($params))) {\n                if ($required) {\n                    throw new Exception(\"Required Parameter Missing: $name\");\n                }\n\n                $filtered_parameters[$position] = $methodParam->getDefaultValue();\n\n                continue;\n            }\n\n            // check if type is correct or can be correct\n            if ($methodParam->hasType()) {\n                if (in_array($type, [gettype($params[$name]), 'mixed'])) {\n                    $filtered_parameters[$position] = $params[$name];\n\n                    continue;\n                }\n\n                if ($params[$name] === null && ! $type->allowsNull()) {\n                    throw new Exception(\"Parameter $name can't be null\");\n                }","sourceCodeStart":419,"sourceCodeEnd":455,"githubUrl":"https://github.com/Leantime/leantime/blob/9a9f49f1008f4782b30f6723c54228f4f992e636/app/Domain/Api/Controllers/Jsonrpc.php#L419-L455","documentation":"Error \"Required Parameter Missing: $name\" thrown in Leantime/leantime.","triggerScenarios":"Thrown at app/Domain/Api/Controllers/Jsonrpc.php:437 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":"9a9f49f1008f4782b30f6723c54228f4f992e636","analyzedAt":"2026-08-21T02:37:38.966Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}