PLA-1909 Fail early, fail hard

* Forcing type in function declaration
* Making sure that WikiService returns array according to PHPDoc
Merge pull request #4850 from Wikia/PLA-1909

PLA-1909 Fail early, fail hard