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

"fix-states -a" in console prints out a lot of notice warnings #128

Open
karmrt opened this issue Feb 14, 2020 · 0 comments
Open

"fix-states -a" in console prints out a lot of notice warnings #128

karmrt opened this issue Feb 14, 2020 · 0 comments
Labels

Comments

@karmrt
Copy link

karmrt commented Feb 14, 2020

Issue present in 3.0.0-alpha4. Happens when running vendor/bin/oxid fix:states -a. The diff function gets multidimensional arrays like this to compare:

[
    'vendor/module' =>
        [
            'something' => 'SomeNamespace\\SomeClass',
        ],
];

Then the function array_diff_assoc basically takes ['something' => 'SomeNamespace\\SomeClass'] and casts it to a string according to:
https://www.php.net/manual/en/function.array-diff-assoc.php#refsect1-function.array-diff-assoc-notes

Notice: Array to string conversion in /var/www/oxideshop/vendor/oxid-community/moduleinternals/Core/ModuleStateFixer.php on line 373

Call Stack:
    0.0003     351720   1. {main}() /var/www/oxideshop/vendor/oxid-professional-services/oxid-console/bin/oxid:0
    0.0083     434568   2. OxidProfessionalServices\OxidConsole\Core\Application->run() /var/www/oxideshop/vendor/oxid-professional-services/oxid-console/bin/oxid:39
    0.0182     613632   3. OxidProfessionalServices\OxidConsole\Core\Application->doRun() /var/www/oxideshop/vendor/symfony/console/Application.php:117
    0.1721    4671056   4. OxidProfessionalServices\OxidConsole\Core\Application->doRun() /var/www/oxideshop/vendor/oxid-professional-services/oxid-console/src/Core/Application.php:80
    0.1723    4671056   5. OxidProfessionalServices\OxidConsole\Core\Application->doRunCommand() /var/www/oxideshop/vendor/symfony/console/Application.php:185
    0.1724    4674040   6. OxidProfessionalServices\OxidConsole\Core\Application->doRunCommand() /var/www/oxideshop/vendor/oxid-professional-services/oxid-console/src/Core/Application.php:149
    0.1725    4674040   7. OxidCommunity\ModuleInternals\Command\ModuleFixCommand->run() /var/www/oxideshop/vendor/symfony/console/Application.php:835
    0.1726    4676784   8. OxidCommunity\ModuleInternals\Command\ModuleFixCommand->execute() /var/www/oxideshop/vendor/symfony/console/Command/Command.php:245
    0.4874    8163840   9. OxidCommunity\ModuleInternals\Command\ModuleFixCommand->executeForShop() /var/www/oxideshop/vendor/oxid-community/moduleinternals/Command/ModuleFixCommand.php:78
    0.4874    8165192  10. OxidCommunity\ModuleInternals\Core\ModuleStateFixer->cleanUp() /var/www/oxideshop/vendor/oxid-community/moduleinternals/Command/ModuleFixCommand.php:115
    0.5054    8400352  11. OxidCommunity\ModuleInternals\Core\ModuleStateFixer->cleanUpControllers() /var/www/oxideshop/vendor/oxid-community/moduleinternals/Core/ModuleStateFixer.php:145
    0.5055    8402424  12. OxidCommunity\ModuleInternals\Core\ModuleStateFixer->diff() /var/www/oxideshop/vendor/oxid-community/moduleinternals/Core/ModuleStateFixer.php:526
    0.5075    8402480  13. array_diff_assoc() /var/www/oxideshop/vendor/oxid-community/moduleinternals/Core/ModuleStateFixer.php:373
@karmrt karmrt added the bug label Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant