You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
changed the title
Suggestion: type hints/return types
[suggestion] Type hints/return types
Aug 18, 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? :-)
The text was updated successfully, but these errors were encountered: