mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Fix: allow json serializable object in response
This commit is contained in:
parent
60c88b226e
commit
de3b029534
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user