Improve phpdoc type hints. Mainly provided by scrutinizer-ci.com.