Codesniffer has some interesting rules on type hinting:
It helps to have a useful auto-completion in IDE and use the language as a more static one.
=> Is it planned to copy codesniffer rules on type hinting?
With type hints, a more dynamic analysis will be possible (and helpful), like sonar-java.
- warn when a wrong type is passed ;
- warn when a function is used on a wrong type ;
As PHP doesn’t have a compiler, the awesome feature would be to be warned about type issues at “sonar time” instead of runtime.