[ticket/11906] Fix namespace issues in prune_notifications

PHPBB3-11906