Skip to content

Commit f8b1543

Browse files
committed
Fix CS
1 parent d69b525 commit f8b1543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/PropertyInfo/Util/PhpDocTypeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function createType(DocType $type, bool $nullable, string $docType = nul
122122
$collectionKeyType = $this->getTypes($type->getKeyType())[0];
123123

124124
$collectionValueTypes = $this->getTypes($type->getValueType());
125-
if (0 === \count($collectionValueTypes) || \count($collectionValueTypes) > 1) {
125+
if (\count($collectionValueTypes) != 1) {
126126
// the Type class does not support union types yet, so assume that no type was defined
127127
$collectionValueType = null;
128128
} else {

0 commit comments

Comments
 (0)