PLA-1909 Fail early, fail hard

* Forcing type in function declaration
* Making sure that WikiService returns array according to PHPDoc