Skip to content

Exception broken at php 7 #269

Description

@mareckii

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}

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