-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Scalar Type Hints #998
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
Scalar Type Hints #998
Conversation
403c887
to
9ec1340
Compare
Hooray, it's green on travis! The only failures are tests that also fail in master. |
71e7fa5
to
dc1cce4
Compare
👍 , one of the most missing feature in PHP. Great proposal and work ! |
@mickaelandrieu Thanks! ^^ |
It's broken on Travis, it won't build and I really don't understand why :( |
121df65
to
f4e1cca
Compare
eee750f
to
f1647c5
Compare
sapi/cli/php -r 'function hello(string $world) : string { var_dump(bin2hex($world)); return $world; } echo "foo" . hello(6) . "\n";'
f1647c5
to
d6bea5b
Compare
|
Hello, the RFC is now put as "withdrawn" on php.net, and I was not able to find a reason why, can you give a brief explanation, as that was a very promising feature. |
@allan-simon their are 2 alternernative PR which implement typehints in a similar fashion |
@staabm , is there a separate RFC associated to them or it's still the same RFC but just different implementation ? |
For version 0.2 of the RFC.
v0.1's pull request was here: #972