Closed saippuakauppias closed 5 years ago
Found hotfix for me: dont use custom error response. For upper code need to remove this strings:
"error" => function($response, $args) {
return $response->write("error");
}
Zend\Diactoros\Response
does not have the write method. I think you should be able to use the following:
"error" => function($response, $args) {
return $response->getBody()->write("error");
}
@tuupola , thanks! Its worked! I think documentation (github & php-package readme) need to be update.
Close Issue.
Yep, updated the README. Thanks for the heads up!
Hello!
I use
sentry/sdk
for catch all exceptions from site, base packagesentry/sentry
requirephp-http/discovery: ^1.6.1
. But with this package I get error like:Call to undefined method Zend\Diactoros\Response::write()
. Traceback:Reproduce
composer.json:
index.php
My question is: how to fix it (without drop
sentry
)?I tried to repair, but I dont know where closure
Zend\Diactoros\Response
gets intoTuupola\Middleware\HttpBasicAuthentication->processError
. Downgradesentry/sdk
not possible.