Fixed type annotations

(avoid triggering warning on IDEs like PhpStorm