Skip to content

Commit

Permalink
Don't crash on unsupported rules
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jun 30, 2021
1 parent 31c31fd commit 720bec7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ public function normaliseArrayAndObjectParameters(array $bodyParametersFromValid
$details['type'] .= '[]';
if ($needsWrapping) {
// Make it two items in each array
$secondItem = $secondValue = $details['setter']();
$secondItem = $secondValue = isset($details['setter'])
? $details['setter']()
: null;
for ($i = 0; $i < $nestingLevel; $i++) {
$secondItem = [$secondValue];
}
Expand Down

0 comments on commit 720bec7

Please sign in to comment.