How do I fix the HelperPluginManager already being declared in laminas-view?

I have just upgraded an old Zend project using the laminas migration package. All worked well during the migration but now I get an error when trying to view the site;

Warning: Class "Laminas\View\HelperPluginManager" not found in /vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php on line 114

Fatal error: Cannot declare class Zend\View\HelperPluginManager, because the name is already in use in /vendor/laminas/laminas-view/src/HelperPluginManager.php on line 0

The version of laminas installed is 2.2.10 and I’m using PHP 7.4. It seems I cannot use the latest version as I’m not using PHP 8.

How can I use Laminas\View\HelperPluginManager and not the Zend\View\HelperPluginManager?