-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review PHP 7.1 feature: nullable types #202
Comments
PHP-Parser does not support this syntax at any version, issue reported at nikic/PHP-Parser#286 |
Also tracking other PHP 7.1 additions: nikic/PHP-Parser#260 |
Need to fix // @todo Nullable types are effectively ignored - to be fixed
/* @see https://github.com/Roave/BetterReflection/issues/202 */
if ($astType instanceof NullableType) {
$astType = $astType->type;
} Not sure how PhpDocumentor's TypeResolver library handles |
Needs to be added upstream in phpDocumentor/TypeResolver - I'll patch it but I've queried Mike about how he'd prefer to see it implemented (ref: https://twitter.com/asgrim/status/853588473646919680 ) |
Created an issue, in retrospect, Twitter probably not the best place for conversation regarding this :) phpDocumentor/TypeResolver#31 |
https://wiki.php.net/rfc/nullable_types
Nullable types are coming in PHP 7.1 - we need to check we deal with these correctly in BR.
The text was updated successfully, but these errors were encountered: