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
No known key found for this signature in database
GPG key ID: FD055E41728BF310

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"');
}