FIX Handle symfony deprecation warning

This commit is contained in:
Steve Boyd 2021-06-01 11:45:27 +12:00
parent 3be003218c
commit 9ea83aee69
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ class HTTPBulkToolsResponse extends HTTPResponse
public function shutdown()
{
$error = error_get_last();
if ($error !== null ) {
if ($error !== null && $error['type'] !== E_USER_DEPRECATED) {
$this->setMessage($error['message']);
$this->setStatusCode(500, $error['message']);
$this->outputBody();