Skip to content

Exception issue #517

Description

@puschie286

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 `
error

if you need more informations feel free to ask :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions