Fix: allow json serializable object in response

This commit is contained in:
Alexander Pankratov 2024-05-31 14:58:07 +02:00
parent 60c88b226e
commit de3b029534

View File

@ -221,10 +221,6 @@ abstract class AbstractApiController
return $this->page['response']; return $this->page['response'];
} }
if (!is_array($this->page['response']) && !is_scalar($this->page['response'])) {
$this->page['response'] = null;
}
$data = [ $data = [
'success' => $this->page['success'], 'success' => $this->page['success'],
'errors' => $this->page['errors'], 'errors' => $this->page['errors'],