Yes it's valid. http://www.php.net/manual/en/language.oop5.typehinting.php