From d8750b615315ca005b79886564120c5cd8ff30f6 Mon Sep 17 00:00:00 2001 From: Mirzaev Date: Mon, 7 Nov 2022 14:19:43 +1000 Subject: [PATCH] fix offsetSet --- .gitignore | 4 +++- composer.json | 3 ++- mirzaev/vk/system/api/settings.php | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 61ead86..1dda020 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -/vendor +!.gitignore +composer.phar +vendor diff --git a/composer.json b/composer.json index bcf5062..43c0ac9 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,8 @@ { "name": "mirzaev/vk", "type": "framework", - "description": "PHP-фреймворк ВКонтакте", + "description": "Framework for vk.com API", + "readme": "README.md", "keywords": [ "vk", "api" diff --git a/mirzaev/vk/system/api/settings.php b/mirzaev/vk/system/api/settings.php index 831192c..28ee29f 100644 --- a/mirzaev/vk/system/api/settings.php +++ b/mirzaev/vk/system/api/settings.php @@ -237,6 +237,8 @@ class settings implements ArrayAccess // Жесткая запись $this->settings['attachments'] = $value; + + return; } if (empty($this->settings['attachments']) || count($this->settings['attachments']) < 10) { @@ -244,6 +246,8 @@ class settings implements ArrayAccess // Запись (конкатенация) $this->settings['attachments'][] = $value; + + return; } throw new Exception('Превышено ограничение на 10 вложений', 500); @@ -251,6 +255,8 @@ class settings implements ArrayAccess // Запись по ключу или смещению $this->settings[$offset] = $value; + + return; } }