Skip to content

Commit 14cf73c

Browse files
committed
This hack is no longer needed because there is now clear separation between Name and Identifier
1 parent c376121 commit 14cf73c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Type/TypehintHelper.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use function get_class;
1717
use function is_string;
1818
use function sprintf;
19-
use function str_ends_with;
2019
use function strtolower;
2120

2221
class TypehintHelper
@@ -132,20 +131,6 @@ public static function decideTypeFromReflection(
132131
}
133132

134133
$reflectionTypeString = $reflectionType->getName();
135-
$loweredReflectionTypeString = strtolower($reflectionTypeString);
136-
if (str_ends_with($loweredReflectionTypeString, '\\object')) {
137-
$reflectionTypeString = 'object';
138-
} elseif (str_ends_with($loweredReflectionTypeString, '\\mixed')) {
139-
$reflectionTypeString = 'mixed';
140-
} elseif (str_ends_with($loweredReflectionTypeString, '\\true')) {
141-
$reflectionTypeString = 'true';
142-
} elseif (str_ends_with($loweredReflectionTypeString, '\\false')) {
143-
$reflectionTypeString = 'false';
144-
} elseif (str_ends_with($loweredReflectionTypeString, '\\null')) {
145-
$reflectionTypeString = 'null';
146-
} elseif (str_ends_with($loweredReflectionTypeString, '\\never')) {
147-
$reflectionTypeString = 'never';
148-
}
149134

150135
$type = self::getTypeObjectFromTypehint($reflectionTypeString, $selfClass);
151136
if ($reflectionType->allowsNull()) {

0 commit comments

Comments
 (0)