Type hints can not be used with scalar types such as int or string.

http://php.net/manual/en/language.oop5.typehinting.php