Skip to content

Commit d54b575

Browse files
authored
review
1 parent 63866b1 commit d54b575

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Validator/Metadata/Resource/Factory/ParameterValidationResourceMetadataCollectionFactory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ public function create(string $resourceClass): ResourceMetadataCollection
9191

9292
private function addSchemaValidation(Parameter $parameter, ?array $schema = null, ?bool $required = null, ?OpenApiParameter $openApi = null): Parameter
9393
{
94-
$constraints = $parameter->getConstraints();
95-
96-
if (\is_array($constraints) && \count($constraints) > 0) {
94+
if (null !== $parameter->getConstraints()) {
9795
return $parameter;
9896
}
9997

0 commit comments

Comments
 (0)