better IDE typehinting

Replaced array phpdoc type with Class[]