title: Upgrade from 2.3.4 to 2.4.4 errir: Class 'Laminas\Code\Scanner\FileScanner' not found#0
body: <p>We are upgrading Magento 2 from 2.3.4 to 2.4.4, but are getting the following error when running setup:upgrade.</p>
  <p>Anyone having an idea why we get this error?</p>
  <p>Best regards,
  Jesper</p>
  <p>Class 'Laminas\Code\Scanner\FileScanner' not found#0 /home/name_dev/public_html/vendor/composer/ClassLoader.php(444): include()
  #1 /home/name_dev/public_html/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
  #2 [internal function]: Composer\Autoload\ClassLoader-&gt;loadClass()
  #3 /home/name_dev/public_html/vendor/magento/framework/Reflection/TypeProcessor.php(561): spl_autoload_call()
  #4 /home/name_dev/public_html/vendor/magento/framework/Reflection/TypeProcessor.php(672): Magento\Framework\Reflection\TypeProcessor-&gt;getAliasMapping()
  #5 /home/name_dev/public_html/vendor/magento/framework/Reflection/TypeProcessor.php(550): Magento\Framework\Reflection\TypeProcessor-&gt;resolveFullyQualifiedClas                          sName()
  #6 /home/name_dev/public_html/vendor/magento/framework/Reflection/MethodsMap.php(146): Magento\Framework\Reflection\TypeProcessor-&gt;getParamType()
  #7 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/ReflectionGenerator.php(50): Magento\Framework\Reflection\MethodsMap-&gt;getMethodPara                          ms()
  #8 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/ReflectionGenerator.php(79): Magento\Framework\Communication\Config\ReflectionGener                          ator-&gt;extractMethodMetadata()
  #9 /home/name_dev/public_html/vendor/magento/module-webapi-async/Code/Generator/Config/RemoteServiceReader/Communication.php(71): Magento\Framework\Communicati                          on\Config\ReflectionGenerator-&gt;generateTopicConfigForServiceMethod()
  #10 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/CompositeReader.php(55): Magento\WebapiAsync\Code\Generator\Config\RemoteServiceRe                          ader\Communication-&gt;read()
  #11 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(105): Magento\Framework\Communication\Config\CompositeReader-&gt;read()
  #12 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(93): Magento\Framework\Config\Data-&gt;initData()
  #13 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/Data.php(29): Magento\Framework\Config\Data-&gt;__construct()
  #14 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Communication\Config\Data-&gt;__construc                          t()
  #15 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;createObject()
  #16 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #17 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #18 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #19 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #20 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #21 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #22 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #23 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #24 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #25 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #26 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #27 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #28 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #29 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(206): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #30 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(217): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;parseArray()
  #31 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(182): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;parseArray()
  #32 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #33 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #34 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #35 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #36 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #37 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #38 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #39 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #40 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #41 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #42 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #43 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(206): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #44 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(217): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;parseArray()
  #45 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(182): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;parseArray()
  #46 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #47 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #48 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #49 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #50 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #51 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #52 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #53 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #54 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #55 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #56 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #57 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #58 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #59 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #60 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #61 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #62 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #63 /home/name_dev/public_html/generated/code/Magento/Framework/MessageQueue/Config/Proxy.php(84): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #64 /home/name_dev/public_html/generated/code/Magento/Framework/MessageQueue/Config/Proxy.php(151): Magento\Framework\MessageQueue\Config\Proxy-&gt;_getSubject()
  #65 /home/name_dev/public_html/vendor/magento/framework-message-queue/Config/Topology/ConfigReaderPlugin.php(70): Magento\Framework\MessageQueue\Config\Proxy-&gt;                          getBinds()
  #66 /home/name_dev/public_html/vendor/magento/framework-message-queue/Config/Topology/ConfigReaderPlugin.php(47): Magento\Framework\MessageQueue\Config\Topolog                          y\ConfigReaderPlugin-&gt;getTopologyConfigDataFromQueueConfig()
  #67 /home/name_dev/public_html/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Framework\MessageQueue\Config\Topology\ConfigReaderPlugin-&gt;a                          fterRead()
  #68 /home/name_dev/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\MessageQueue\Topology\Config\CompositeReader\Inter                          ceptor-&gt;Magento\Framework\Interception{closure}()
  #69 /home/name_dev/public_html/generated/code/Magento/Framework/MessageQueue/Topology/Config/CompositeReader/Interceptor.php(23): Magento\Framework\MessageQueu                          e\Topology\Config\CompositeReader\Interceptor-&gt;___callPlugins()
  #70 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(105): Magento\Framework\MessageQueue\Topology\Config\CompositeReader\Interceptor-&gt;read(                          )
  #71 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(93): Magento\Framework\Config\Data-&gt;initData()
  #72 /home/name_dev/public_html/vendor/magento/framework-message-queue/Topology/Config/Data.php(24): Magento\Framework\Config\Data-&gt;<strong>construct()
  #73 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\MessageQueue\Topology\Config\Data-&gt;</strong>                          construct()
  #74 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;createObject()
  #75 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #76 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #77 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #78 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #79 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #80 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #81 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #82 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #83 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #84 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #85 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #86 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #87 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #88 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #89 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #90 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #91 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #92 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #93 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #94 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager-&gt;get()
  #95 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;resolveArgument()
  #96 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory                          -&gt;getResolvedArgument()
  #97 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactor                          y-&gt;resolveArgumentsInRuntime()
  #98 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Develo                          per-&gt;_resolveArguments()
  #99 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer-&gt;create(                          )
  #100 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(1215): Magento\Framework\ObjectManager\ObjectManager-&gt;create()
  #101 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(1622): Magento\Setup\Model\Installer-&gt;createSchemaDataHandler()
  #102 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(1114): Magento\Setup\Model\Installer-&gt;getSchemaDataHandler()
  #103 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(895): Magento\Setup\Model\Installer-&gt;handleDBSchemaData()
  #104 /home/name_dev/public_html/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php(146): Magento\Setup\Model\Installer-&gt;installSchema()
  #105 /home/name_dev/public_html/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\UpgradeCommand-&gt;execute()
  #106 /home/name_dev/public_html/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command-&gt;run()
  #107 /home/name_dev/public_html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application-&gt;doRunCommand()
  #108 /home/name_dev/public_html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application-&gt;doRun()
  #109 /home/name_dev/public_html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli-&gt;doRun()
  #110 /home/name_dev/public_html/bin/magento(23): Symfony\Component\Console\Application-&gt;run()</p>