Skip to content

Commit 2bcb86f

Browse files
author
hwyu@adobe.com
committed
MC-36035: Prevent input based resource allocation
- Fixed default page size
1 parent f4e7553 commit 2bcb86f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class ServiceInputProcessor implements ServicePayloadConverterInterface
109109
* @param ConfigInterface|null $config
110110
* @param array $customAttributePreprocessors
111111
* @param ServiceInputValidatorInterface|null $serviceInputValidator
112-
* @param int|null $defaultPageSize
112+
* @param int $defaultPageSize
113113
*/
114114
public function __construct(
115115
TypeProcessor $typeProcessor,
@@ -121,7 +121,7 @@ public function __construct(
121121
ConfigInterface $config = null,
122122
array $customAttributePreprocessors = [],
123123
ServiceInputValidatorInterface $serviceInputValidator = null,
124-
int $defaultPageSize = null
124+
int $defaultPageSize = 20
125125
) {
126126
$this->typeProcessor = $typeProcessor;
127127
$this->objectManager = $objectManager;

0 commit comments

Comments
 (0)