Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ce7544

Browse files
committed
fixes 5515
1 parent 08ee899 commit 6ce7544

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Phan/Language/UnionType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3727,6 +3727,10 @@ private static function castTypeListToClassString(array $type_set): array
37273727
$result = [];
37283728
$is_possibly_string = false;
37293729
foreach ($type_set as $type) {
3730+
if ($type instanceof ClassStringType) {
3731+
$result[] = $type->withIsNullable(false);
3732+
continue;
3733+
}
37303734
if ($type instanceof LiteralStringType) {
37313735
if (!\preg_match(FullyQualifiedClassName::VALID_CLASS_REGEX, $type->getValue()) && !\preg_match('/^\\\\?oci-(lob|collection)$/iD', $type->getValue())) {
37323736
continue;

0 commit comments

Comments
 (0)