Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] bin/magento setup:di:compile issue #392

Closed
LuukS-stimmt opened this issue Aug 9, 2024 · 1 comment
Closed

[BUG] bin/magento setup:di:compile issue #392

LuukS-stimmt opened this issue Aug 9, 2024 · 1 comment

Comments

@LuukS-stimmt
Copy link

LuukS-stimmt commented Aug 9, 2024

To Reproduce
Steps to reproduce the behavior:
run bin/magento setup:di:compile

Fix / Workaround
Please remove the comma in:

OrderCollectionFactory $collectionFactory,

And in:
SmartReturnShipmentManager $smartReturnShipmentManager,

And:
SearchCriteriaBuilder $searchCriteriaBuilder,

Unexpected result
Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 126.0 MiBsyntax error, unexpected ')', expecting variable (T_VARIABLE)#0 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/var/www/html/v...') #1 [internal function]: Composer\Autoload\ClassLoader->loadClass('TIG\\PostNL\\Cont...') #2 [internal function]: spl_autoload_call('TIG\\PostNL\\Cont...') #3 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('TIG\\PostNL\\Cont...') #4 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('TIG\\PostNL\\Cont...', '/var/www/html/v...') #5 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract(Object(RecursiveIteratorIterator)) #6 /var/www/html/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList('/var/www/html/v...') #7 /var/www/html/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation() #8 /var/www/html/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process(Object(Closure), Object(Closure)) #9 /var/www/html/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/html/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/html/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/html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/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/html/bin/magento(23): Symfony\Component\Console\Application->run() #15 {main}

Magento version: 2.4.3
PHP version: 7.4
TIG PostNL version: 1.15.2

@YachYaroslav
Copy link

Hi @LuukS-stimmt, this is a duplicate of #386. PostNL developers are acknowledged about this problem when using PHP 7.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants