{"record":{"id":"b06c32633c03274f","repo":"Leantime/leantime","slug":"parameter-name-can-t-be-null","errorCode":null,"errorMessage":"Parameter $name can't be null","messagePattern":"Parameter \\$name can't be null","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Domain/Api/Controllers/Jsonrpc.php","lineNumber":454,"sourceCode":"                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                }\n\n                try {\n                    $filtered_parameters[$position] = cast($params[$name], $type->getName());\n                } catch (\\Throwable $e) {\n                    Log::error($e);\n                    throw new \\Exception(\"Could not cast parameter: $name. See server logs for more details.\");\n                }\n            }\n\n            if (! isset($filtered_parameters[$position])) {\n                $filtered_parameters[$position] = $params[$name];\n            }\n        }\n\n        // make sure it is in the right order\n        ksort($filtered_parameters);\n","sourceCodeStart":436,"sourceCodeEnd":472,"githubUrl":"https://github.com/Leantime/leantime/blob/9a9f49f1008f4782b30f6723c54228f4f992e636/app/Domain/Api/Controllers/Jsonrpc.php#L436-L472","documentation":"Error \"Parameter $name can't be null\" thrown in Leantime/leantime.","triggerScenarios":"Thrown at app/Domain/Api/Controllers/Jsonrpc.php:454 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"}