Join GitHub today
Bump to PHP 7.1, add typehtins #137
left a comment
I'm not sure if I want to remove all
I don't know if the
As for nullable, if it doesn't break the used code, it's better to use it since it creates more explicit contract.
As for unused typehtins. Do you agree, it is a comment and it should add a value to the code? If so, I realize it has it's meaning pre-PHP 7.0 typehtins. But now it just old-code that does nothing. It doesn't hurt to have it (like static methods everywhere), there is just no reason to have it at all.
You can see trend in PHP from docs to typehints. In the future, there won't be comment neither for arrays (