Running setup:di:compile fails due to syntax errors within module-catalog/Model
files #97
Open
Description
Preconditions (*)
- Magento 2.4.5
- Install the extension
Steps to reproduce (*)
- Try running
bin/magento setup:di:compile
Expected result (*)
- Compilation is successful
Actual result (*)
Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 159.0 MiBsyntax error, unexpected ')', expecting variable (T_VARIABLE)#0 /var/www/magento2/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/var/www/magent...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Meta\\Catalog\\Mo...')
#2 [internal function]: spl_autoload_call('Meta\\Catalog\\Mo...')
#3 /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('Meta\\Catalog\\Mo...')
#4 /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Meta\\Catalog\\Mo...', '/var/www/magent...')
#5 /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract(Object(RecursiveIteratorIterator))
#6 /var/www/magento2/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList('/var/www/magent...')
#7 /var/www/magento2/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation()
#8 /var/www/magento2/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process(Object(Closure), Object(Closure))
#9 /var/www/magento2/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/magento2/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/magento2/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\DiCompileCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/magento2/vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/magento2/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/magento2/bin/magento(23): Symfony\Component\Console\Application->run()
#15 {main}
Metadata
Assignees
Labels
No labels