Skip to content

Commit

Permalink
fix(400Prepartor): fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sidux committed Feb 19, 2024
1 parent 86915ca commit 4cdd1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Preparator/Error400BadTypesPreparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected function prepareForBodyFields(Body $body, array $parameters, Operation
/** @var Schema $schema */
foreach ($body->getSchema()->properties as $property => $schema) {
foreach (self::SCHEMA_TYPES as $type) {
if ($this->isAllowedType($schema->type, $type)) {
if ($this->isAllowedType($schema->type ?? '', $type)) {
continue;
}

Expand Down

0 comments on commit 4cdd1d1

Please sign in to comment.