Skip to content

Commit f864e4a

Browse files
committed
Merge branch 'hotfix/15' into develop
Forward port #15
2 parents 0f27796 + 41b6a5e commit f864e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ApiFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ public function createService(Api $api, $serviceName)
205205

206206
$fields = [];
207207
if (isset($this->config['api-tools-content-validation'][$serviceClassName])) {
208-
foreach ($this->config['api-tools-content-validation'][$serviceClassName] as $validatorKey => $validatorName) {
208+
$validators = $this->config['api-tools-content-validation'][$serviceClassName];
209+
foreach ($validators as $validatorKey => $validatorName) {
209210
if (isset($this->config['input_filter_specs'][$validatorName])) {
210211
foreach ($this->mapFields($this->config['input_filter_specs'][$validatorName]) as $fieldData) {
211212
$fields[$validatorKey][] = $this->getField($fieldData);

0 commit comments

Comments
 (0)