{"record":{"id":"7ee30e9738e8be8e","repo":"bcit-ci/CodeIgniter","slug":"no-such-method-method","errorCode":null,"errorMessage":"No such method: $method()","messagePattern":"No such method: \\$method\\(\\)","errorType":"exception","errorClass":"BadMethodCallException","httpStatus":null,"severity":"error","filePath":"system/libraries/Driver.php","lineNumber":303,"sourceCode":"\t// --------------------------------------------------------------------\n\n\t/**\n\t * __call magic method\n\t *\n\t * Handles access to the parent driver library's methods\n\t *\n\t * @param\tstring\n\t * @param\tarray\n\t * @return\tmixed\n\t */\n\tpublic function __call($method, $args = array())\n\t{\n\t\tif (in_array($method, $this->_methods))\n\t\t{\n\t\t\treturn call_user_func_array(array($this->_parent, $method), $args);\n\t\t}\n\n\t\tthrow new BadMethodCallException('No such method: '.$method.'()');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * __get magic method\n\t *\n\t * Handles reading of the parent driver library's properties\n\t *\n\t * @param\tstring\n\t * @return\tmixed\n\t */\n\tpublic function __get($var)\n\t{\n\t\tif (in_array($var, $this->_properties))\n\t\t{\n\t\t\treturn $this->_parent->$var;\n\t\t}","sourceCodeStart":285,"sourceCodeEnd":321,"githubUrl":"https://github.com/bcit-ci/CodeIgniter/blob/3658d731eaabe6117298a105ffb5b9dd59e190ce/system/libraries/Driver.php#L285-L321","documentation":"Error \"No such method: $method()\" thrown in bcit-ci/CodeIgniter.","triggerScenarios":"Thrown at system/libraries/Driver.php:303 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":"3658d731eaabe6117298a105ffb5b9dd59e190ce","analyzedAt":"2026-08-17T02:34:56.929Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}