I have such exception:
FatalThrowableError in ExceptionsCollector.php line 28:
Type error: Argument 1 passed to DebugBar\DataCollector\ExceptionsCollector::addException() must be an instance of Exception, instance of ParseError given, called in /home/iwex/vagrant/chicago/vendor/maximebf/debugbar/src/DebugBar/DataCollector/ExceptionsCollector.php on line 32
We can't typehint the new Errors right? So no typehinting at all then?
Hmm, is it possible to create a new branch for php7? For typehinting you can use Throwable interface.
Sorry for writing here.. I should write it to this repo
@iwex did you create an issue about this on maximebf/php-debugbar?
@marktopper no :)
So perhaps just like this; remove the typehint and Check at runtime.
https://github.com/Seldaek/monolog/commit/481fc4cfa17808581d113673e7dd002b06dcc100
Works fine with: PHP 7.0.4
@tje3d
It's not working with PHP 7.0.5-2... should I downgrade?
@vjoao
hmm, didnt tried that, im not sure with 7.0.5
It should work in PHP 7.x when exceptions are thrown, but not when errors are thrown.
It was a mistake on my side. Exceptions are namespaced and I forgot to use them.
Hi!
I have the same problem with PHP 7.0.7...
@alejandrozorita
Same am facing problems with PHP 7.0.8
Can you try disabling collectors until it doesn't happen, so we can narrow down which one it is?
Or if it's the debugbar itself (without collectors)
@barryvdh Just tried this. It seems to be the Exceptions collector that is giving issues.
Same problem with 7.0.9 .
Same with PHP 7.0.5-2 on a default Laravel Homestead
Same problem here...
FatalThrowableError in ExceptionsCollector.php line 28:
Type error: Argument 1 passed to DebugBar\DataCollector\ExceptionsCollector::addException() must be an instance of Exception, instance of ParseError given, called in /home/esoares/Sandbox/cdtsys/vendor/maximebf/debugbar/src/DebugBar/DataCollector/ExceptionsCollector.php on line 32
Does the above commit fix it for you (Try ^2.3@dev)
Fixed! :) Thanks!
Most helpful comment
Does the above commit fix it for you (Try
^2.3@dev)