PLA-1909 Fail early, fail hard

* Forcing type in function declaration
* Making sure that WikiService returns array according to PHPDoc
It should be ``Array`` - PHP raises a notice here