Skip to content
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

[suggestion] Type hints/return types #814

Open
rieschl opened this issue Feb 25, 2019 · 2 comments
Open

[suggestion] Type hints/return types #814

rieschl opened this issue Feb 25, 2019 · 2 comments
Labels
feedback-needed We need feedback on this issue

Comments

@rieschl
Copy link

rieschl commented Feb 25, 2019

I really like this PHP reference, it's nice to send it to beginners and people who've been away for a while and want to get up to date.

But what's missing is any explanation of method/function type hints and return types, also in conjunction with declare(strict_types=1);.

Personally I think type safety is a very important concept and when using it from the beginning it makes code cleaner and also easier to understand.

PHP 7.4 will also have typed properties, so maybe this topic is worth to be added? :-)

@derekyle
Copy link

I agree. I came here to make the same suggestion and then saw this. Definitely very important. It looks like they accept pull requests so maybe someone could write it up? I'll try to if I can scrape together the time.

@codeguy
Copy link
Owner

codeguy commented Aug 17, 2019

Yes we do accept pull requests :) Feel free to use this thread as a discussion for your WIP. I and others will be happy to provide feedback along the way. Thanks!

@codeguy codeguy changed the title Suggestion: type hints/return types [suggestion] Type hints/return types Aug 18, 2019
@codeguy codeguy added the feedback-needed We need feedback on this issue label Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback-needed We need feedback on this issue
Projects
None yet
Development

No branches or pull requests

3 participants