Fix broken type hints/imports in Wikibase.hooks.php

Change-Id: I994078bb4ebe123b6dc638ce2114039883b6fb74
Merge "Fix broken type hints/imports in Wikibase.hooks.php"