1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00

Remove unnecessary workaround for the true type

This commit is contained in:
Máté Kocsis
2023-03-07 09:08:16 +01:00
parent 648e896d0e
commit 368febbf89

View File

@@ -218,11 +218,6 @@ class SimpleType {
return new SimpleType($node->toLowerString(), true);
}
if ($node->toLowerString() === 'true') {
// TODO PHP-Parser doesn't yet recognize true as a stand-alone built-in type
return new SimpleType($node->toLowerString(), true);
}
if ($node->toLowerString() === 'self') {
throw new Exception('The exact class name must be used instead of "self"');
}