add missing type hints in phpdoc
fix method argument check