From de3b029534e1f735171da933bda5e94cfb6ff9b8 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Fri, 31 May 2024 14:58:07 +0200 Subject: [PATCH 1/4] Fix: allow json serializable object in response --- src/Controllers/AbstractApiController.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Controllers/AbstractApiController.php b/src/Controllers/AbstractApiController.php index ba98cc0..b2eda2a 100644 --- a/src/Controllers/AbstractApiController.php +++ b/src/Controllers/AbstractApiController.php @@ -221,10 +221,6 @@ abstract class AbstractApiController return $this->page['response']; } - if (!is_array($this->page['response']) && !is_scalar($this->page['response'])) { - $this->page['response'] = null; - } - $data = [ 'success' => $this->page['success'], 'errors' => $this->page['errors'], From ee98c71109aac16d9f632b309b0aa6b99d509191 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Fri, 31 May 2024 15:00:10 +0200 Subject: [PATCH 2/4] Update madelineProto --- composer.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index 2b07d24..dea059b 100644 --- a/composer.lock +++ b/composer.lock @@ -2646,12 +2646,12 @@ "source": { "type": "git", "url": "https://github.com/danog/MadelineProto.git", - "reference": "050d934015299689b11f1b14cd0055b07aa03694" + "reference": "550d9dac8776ca711b7cae3b16176fa6cf98bb69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/danog/MadelineProto/zipball/050d934015299689b11f1b14cd0055b07aa03694", - "reference": "050d934015299689b11f1b14cd0055b07aa03694", + "url": "https://api.github.com/repos/danog/MadelineProto/zipball/550d9dac8776ca711b7cae3b16176fa6cf98bb69", + "reference": "550d9dac8776ca711b7cae3b16176fa6cf98bb69", "shasum": "" }, "require": { @@ -2766,7 +2766,7 @@ "type": "github" } ], - "time": "2024-05-23T15:33:19+00:00" + "time": "2024-05-31T12:59:29+00:00" }, { "name": "danog/primemodule", From 774615b05860f535349897997d2d0177ab850f29 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Sun, 2 Jun 2024 21:28:34 +0200 Subject: [PATCH 3/4] Update madelineProto --- composer.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index dea059b..d4176c1 100644 --- a/composer.lock +++ b/composer.lock @@ -2646,12 +2646,12 @@ "source": { "type": "git", "url": "https://github.com/danog/MadelineProto.git", - "reference": "550d9dac8776ca711b7cae3b16176fa6cf98bb69" + "reference": "1b75b55756feba5137681a54b48a8bb711c5f0e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/danog/MadelineProto/zipball/550d9dac8776ca711b7cae3b16176fa6cf98bb69", - "reference": "550d9dac8776ca711b7cae3b16176fa6cf98bb69", + "url": "https://api.github.com/repos/danog/MadelineProto/zipball/1b75b55756feba5137681a54b48a8bb711c5f0e1", + "reference": "1b75b55756feba5137681a54b48a8bb711c5f0e1", "shasum": "" }, "require": { @@ -2766,7 +2766,7 @@ "type": "github" } ], - "time": "2024-05-31T12:59:29+00:00" + "time": "2024-06-02T19:27:59+00:00" }, { "name": "danog/primemodule", From 3d6a97d4cf3254dcf001c05bf1cb71bc186194d3 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Thu, 13 Jun 2024 17:23:19 +0200 Subject: [PATCH 4/4] Fix getPwrChat --- composer.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index d4176c1..db43222 100644 --- a/composer.lock +++ b/composer.lock @@ -2646,12 +2646,12 @@ "source": { "type": "git", "url": "https://github.com/danog/MadelineProto.git", - "reference": "1b75b55756feba5137681a54b48a8bb711c5f0e1" + "reference": "d5c1634ecfac473ce91f681c905a812a6ee7b303" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/danog/MadelineProto/zipball/1b75b55756feba5137681a54b48a8bb711c5f0e1", - "reference": "1b75b55756feba5137681a54b48a8bb711c5f0e1", + "url": "https://api.github.com/repos/danog/MadelineProto/zipball/d5c1634ecfac473ce91f681c905a812a6ee7b303", + "reference": "d5c1634ecfac473ce91f681c905a812a6ee7b303", "shasum": "" }, "require": { @@ -2766,7 +2766,7 @@ "type": "github" } ], - "time": "2024-06-02T19:27:59+00:00" + "time": "2024-06-13T15:22:29+00:00" }, { "name": "danog/primemodule",