Description
Hey, i found a problem with the error_exception.php after calling a anonymous function with too few arguments.
the exceptionHandler has the right data ( correct type, code, message etc. ) so i guess its something in the error_exception.php
Exampe Code to reproduce ( i call this in a model ) :
public function ExceptionTest() { $exampleFunc = function( $a, $b ) { }; $exampleFunc( null ); }
Output is :
`ErrorException #1
Uncaught ReflectionException: Method App\Models\Mitarbeiter::App\Models{closure}() does not exist in C:\WorkSpace\PHPPlayground\CodeIgniter4\application\Views\errors\html\error_exception.php:91 Stack trace: #0 C:\WorkSpace\PHPPlayground\CodeIgniter4\application\Views\errors\html\error_exception.php(91): ReflectionMethod->__construct('App\Models\Mita...', 'App\Models\{clo...') #1 C:\WorkSpace\PHPPlayground\CodeIgniter4\system\Debug\Exceptions.php(151): include('C:\WorkSpace\PH...') #2 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ArgumentCountError)) #3 {main} thrown `
if you need more informations feel free to ask :)