[ticket/12536] Restore missing @throws

PHPBB3-12536