Add missing type hints

Add some missing type hints to constructors.

PHPBB3-11103