Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception broken at php 7 #269

Open
mareckii opened this issue Apr 23, 2017 · 0 comments
Open

Exception broken at php 7 #269

mareckii opened this issue Apr 23, 2017 · 0 comments

Comments

@mareckii
Copy link
Member

Commit fcee432 broke Exceptions at Ouzo

HTTP 500] Error 'Uncaught TypeError: Argument 2 passed to Ouzo\ExceptionHandling\OuzoExceptionData::forException() must be an instance of Exception, instance of TypeError given, called in /var/www/html/vendor/letsdrink/ouzo/src/Ouzo/Core/ExceptionHandling/DebugErrorLogHandler.php on line 16 and defined in /var/www/html/vendor/letsdrink/ouzo/src/Ouzo/Core/ExceptionHandling/OuzoExceptionData.php:41
Stack trace:
#0 /var/www/html/vendor/letsdrink/ouzo/src/Ouzo/Core/ExceptionHandling/DebugErrorLogHandler.php(16): Ouzo\ExceptionHandling\OuzoExceptionData::forException(500, Object(TypeError))
#1 /var/www/html/vendor/filp/whoops/src/Whoops/Run.php(272): Ouzo\ExceptionHandling\DebugErrorLogHandler->handle(Object(TypeError))
#2 /var/www/html/vendor/letsdrink/ouzo/src/Ouzo/Core/ExceptionHandling/DebugExceptionHandler.php(22): Whoops\Run->handleException(Object(TypeError))
#3 /var/www/html/vendor/letsdrink/ouzo/src/Ouzo/Core/ExceptionHandling/ExceptionHandler.php(21): Ouzo\ExceptionHa', severity E_ERROR in /var/www/html/vendor/letsdrink/ouzo/src/Ouzo/Core/ExceptionHandling/OuzoExceptionData.php:41.
Stack trace:
#0 /var/www/html/vendor/filp/whoops/src/Whoops/Run.php(382): Whoops\Run->handleError(1, 'Uncaught TypeEr...', '/var/www/html/c...', 41)
#1 /var/www/html/vendor/letsdrink/ouzo/src/Ouzo/Core/ExceptionHandling/DebugErrorHandler.php(44): Whoops\Run->handleShutdown()
#2 [internal function]: Ouzo\ExceptionHandling\DebugErrorHandler::shutdownHandler()
#3 {main}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant