This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Support nullable types #85
Labels
Comments
15 tasks
Surely resolving the fact that |
@djmattyg007 I reported the issue completely independently from other issues. |
My point was that PHP 7.0 compatibility should be targeted before PHP 7.1 compatibility. |
Ah yes, that is because the codegen part of this component is already 7.0 compatible. I hardly ever use the scanner, as it is not AST-based (which makes it very unstable) |
If no one is maintaining the scanning code, shouldn't it be removed? |
Merged
perajovic
added a commit
to perajovic/framework-bundle
that referenced
this issue
Nov 12, 2016
This method signature should be compatible with 7.1 nullable types `?string $firstname, ?string $lastname`. ATM (12.11.2016.) there are bugs in two projects: 1. zendframework/zend-code#85 2. Ocramius/ProxyManager#327 These are blockers for 7.1 syntax.
This repository has been closed and moved to laminas/laminas-code; a new issue has been opened at laminas/laminas-code#19. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As per PHP 7.1, it is possible to define nullability of a type by adding a
?
in front of it ( https://wiki.php.net/rfc/nullable_types ).A few heads-up:
?Foo $bar = null
vs?Foo $bar
vsFoo $bar = null
TypeGenerator
to include the?
in it (not sure yet)The text was updated successfully, but these errors were encountered: