PHP does have return type annotations. The PHPDoc comments are needed here because it lacks generics. Unfortunately, adding generics has proven problematic, but I still hope that we'll see them in the next few years.