Skip to content

Commit 4c70de6

Browse files
committed
ensure compatibility with type resolver 0.5
1 parent 1a9c633 commit 4c70de6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ public function getTypes(DocType $varType): array
6464
continue;
6565
}
6666

67+
if ($type instanceof Nullable) {
68+
$nullable = true;
69+
$type = $type->getActualType();
70+
}
71+
6772
$varTypes[] = $type;
6873
}
6974

0 commit comments

Comments
 (0)