Skip to content

Commit

Permalink
[nelmio#2104] style
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-jovanovic-php committed May 29, 2023
1 parent 4144e85 commit 0d1f78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModelDescriber/FormModelDescriber.php
Expand Up @@ -199,7 +199,7 @@ private function findFormType(FormConfigInterface $config, OA\Schema $property)
break;
}

if ('enum' === $blockPrefix || $config->getType()->getInnerType()->getBlockPrefix() === 'enum') {
if ('enum' === $blockPrefix || 'enum' === $config->getType()->getInnerType()->getBlockPrefix()) {
$model = new Model(
new Type(Type::BUILTIN_TYPE_OBJECT, !$config->getOption('required'), $config->getOption('class')),
null,
Expand Down

0 comments on commit 0d1f78e

Please sign in to comment.