Skip to content

Commit 86aacac

Browse files
lezhnev74cebe
andauthored
Update src/spec/Parameter.php
Co-Authored-By: Carsten Brandt <[email protected]>
1 parent b80c37f commit 86aacac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spec/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function performValidation()
127127
'header' => ['simple'],
128128
'cookie' => ['form'],
129129
];
130-
if (! in_array($this->style, $supportedSerializationStyles[$this->in])) {
130+
if (isset($supportedSerializationStyles[$this->in]) && !in_array($this->style, $supportedSerializationStyles[$this->in])) {
131131
$this->addError('A Parameter Object DOES NOT support this serialization style.');
132132
}
133133
}

0 commit comments

Comments
 (0)