Skip to content

Commit 833287b

Browse files
authored
Merge pull request #2 from wubinworks/bugfix/issue-1_fixes-a-bug-while-handling-array-of-complex-types
Fixes a bug while handling array of complex types.
2 parents 9df71b8 + c921cf9 commit 833287b

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

COPYING.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2016-present Wubinworks.
1+
Copyright © 2017-present Wubinworks.
22

33
Each source file included in this distribution is licensed under OSL 3.0
44

Plugin/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function beforeConvertValue(
5858
$type
5959
) {
6060
if (!is_array($data)
61+
|| empty($data)
6162
|| $this->typeProcessor->isTypeSimple($type)
6263
|| $this->typeProcessor->isTypeAny($type)
6364
) {

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626

2727
*No `preference` is used, so your Magento is still upgradable.*
2828

29+
#### Behavior difference
30+
31+
*The official fix still allows dangerous parameter to go to `Setter`s, this patch does not allow it.*
32+
2933
## Requirements
3034

3135
Magento/Adobe Commerce 2.3 or 2.4

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"magento/magento2-base": "~2.3.0 || ~2.4.0"
2424
},
2525
"type": "magento2-module",
26-
"version": "1.0.0",
26+
"version": "1.0.1",
2727
"license": "OSL-3.0",
2828
"authors": [
2929
{

0 commit comments

Comments
 (0)