Having some issues with this error message, not getting anything else and not sure where to look. This is on a new laravel install I am working with and using Codeception as my testing framework.
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class PermissionException does not exist' in /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php:316\nStack trace:\n#0 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(316): ReflectionParameter->getClass()\n#1 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(300): Illuminate\\Exception\\Handler->hints(Object(ReflectionFunction), Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException))\n#2 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(237): Illuminate\\Exception\\Handler->handlesException(Object(Closure), Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException))\n#3 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(145): Illuminate\\Exception\\Handler->callCustomHandlers(Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException))\n#4 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/ in /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php on line 316
I should add I am making an API and have taken some ideas from: https://github.com/akuzemchak/laracon-todo-api/blob/master/app/controllers/BaseController.php
@adamski, did you ever get this sorted out? I'm having the same issue trying to create a custom exception class. I can throw and catch the exception manually without a problem, but as soon as I add App::error(function(SimplePieException $exception, $code) {...} in my global.php file, I get the ReflectionException.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community