Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bafe10a

Browse filesBrowse files
committed
bug #33588 [PropertyInfo] ensure compatibility with type resolver 0.5 (xabbuh)
This PR was merged into the 4.3 branch. Discussion ---------- [PropertyInfo] ensure compatibility with type resolver 0.5 | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 4c70de6 ensure compatibility with type resolver 0.5
2 parents 1a9c633 + 4c70de6 commit bafe10a
Copy full SHA for bafe10a

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Util/PhpDocTypeHelper.php
+5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.