Sometimes got error EightPoints\Bundle\GuzzleBundle\Middleware\EventDispatchMiddleware::EightPoints\Bundle\GuzzleBundle\Middleware\{closure}(): Argument #1 ($reason) must be of type Exception, TypeError given, called in /var/www/loyalty_service/vendor/guzzlehttp/promises/src/Promise.php on line 209
I guess problem is that. Some errors like \TypeError extend \Error and implement \Throwable, but do not extend \Exception
In other side
eightpoints/guzzle-bundle/src/Middleware/EventDispatchMiddleware.php:73
function (Exception $reason) {
// Get the response. The response in a RequestException can be null too.
$response = $reason instanceof RequestException ? $reason->getResponse() : null;
May be would better to change \Exception to \Throwable?
Hello all!
Sometimes got error
EightPoints\Bundle\GuzzleBundle\Middleware\EventDispatchMiddleware::EightPoints\Bundle\GuzzleBundle\Middleware\{closure}(): Argument #1 ($reason) must be of type Exception, TypeError given, called in /var/www/loyalty_service/vendor/guzzlehttp/promises/src/Promise.php on line 209
I guess problem is that. Some errors like
\TypeError
extend\Error
and implement\Throwable
, but do not extend\Exception
In other sideeightpoints/guzzle-bundle/src/Middleware/EventDispatchMiddleware.php:73
May be would better to change
\Exception
to\Throwable
?