We get the following error after Shopware 5.6.4 upgrade to 5.6.10:
In MNAddEmotionAttributes.php line 11:
Declaration of MNAddEmotionAttributes\MNAddEmotionAttributes::update(Shopware\Components\Plugin\Context\InstallContext $context) should be compatible with Shopware\Components\Plugin::update(Shopware\Components\Plugin\Context\UpdateContext $context)
Slim Application Error
The application could not run because of the following error:
Details
Type: ErrorException
Code: 2
Message: Declaration of MNAddEmotionAttributes\MNAddEmotionAttributes::update(Shopware\Components\Plugin\Context\InstallContext $context) should be compatible with Shopware\Components\Plugin::update(Shopware\Components\Plugin\Context\UpdateContext $context)
File: custom/plugins/MNAddEmotionAttributes/MNAddEmotionAttributes.php
Trace
#0 [internal function]: Slim\Slim::handleErrors(2, 'Declaration of ...', '/var/www/vhosts...', 0, Array)
#1 engine/Shopware/Bundle/PluginInstallerBundle/Service/PluginInitializer.php(159): call_user_func(Array, 2, 'Declaration of ...', '/var/www/vhosts...', 0, Array)
#2 vendor/symfony/class-loader/Psr4ClassLoader.php(71): Shopware\Bundle\PluginInstallerBundle\Service\PluginInitializer->errorHandler(2, 'Declaration of ...', '/var/www/vhosts...', 0, Array)
#3 vendor/symfony/class-loader/Psr4ClassLoader.php(71): require()
#4 [internal function]: Symfony\Component\ClassLoader\Psr4ClassLoader->loadClass('MNAddEmotionAtt...')
#5 [internal function]: spl_autoload_call('MNAddEmotionAtt...')
#6 engine/Shopware/Bundle/PluginInstallerBundle/Service/PluginInitializer.php(118): class_exists('\MNAddEmotionAt...')
#7 engine/Shopware/Kernel.php(485): Shopware\Bundle\PluginInstallerBundle\Service\PluginInitializer->initializePlugins()
#8 engine/Shopware/Kernel.php(237): Shopware\Kernel->initializePlugins()
#9 recovery/update/src/DependencyInjection/Container.php(177): Shopware\Kernel->boot()
#10 recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(118): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))
#11 recovery/update/src/DependencyInjection/Container.php(186): Pimple\Container->offsetGet('shopware.contai...')
#12 recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(118): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))
#13 recovery/common/src/DependencyInjection/Container.php(71): Pimple\Container->offsetGet('shopware.theme_...')
#14 recovery/update/src/app.php(169): Shopware\Recovery\Common\DependencyInjection\Container->get('shopware.theme_...')
#15 [internal function]: {closure}()
#16 recovery/common/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#17 recovery/common/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()
#18 recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#19 recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#20 recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#21 recovery/common/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\PrettyExceptions->call()
#22 recovery/update/index.php(57): Slim\Slim->run()
#23 {main}
We get the following error after Shopware 5.6.4 upgrade to 5.6.10:
In MNAddEmotionAttributes.php line 11:
Declaration of MNAddEmotionAttributes\MNAddEmotionAttributes::update(Shopware\Components\Plugin\Context\InstallContext $context) should be compatible with Shopware\Components\Plugin::update(Shopware\Components\Plugin\Context\UpdateContext $context)
Slim Application Error
The application could not run because of the following error:
Details
Type: ErrorException
Code: 2
Message: Declaration of MNAddEmotionAttributes\MNAddEmotionAttributes::update(Shopware\Components\Plugin\Context\InstallContext $context) should be compatible with Shopware\Components\Plugin::update(Shopware\Components\Plugin\Context\UpdateContext $context)
File: custom/plugins/MNAddEmotionAttributes/MNAddEmotionAttributes.php
Trace
#0 [internal function]: Slim\Slim::handleErrors(2, 'Declaration of ...', '/var/www/vhosts...', 0, Array)
#1 engine/Shopware/Bundle/PluginInstallerBundle/Service/PluginInitializer.php(159): call_user_func(Array, 2, 'Declaration of ...', '/var/www/vhosts...', 0, Array)
#2 vendor/symfony/class-loader/Psr4ClassLoader.php(71): Shopware\Bundle\PluginInstallerBundle\Service\PluginInitializer->errorHandler(2, 'Declaration of ...', '/var/www/vhosts...', 0, Array)
#3 vendor/symfony/class-loader/Psr4ClassLoader.php(71): require()
#4 [internal function]: Symfony\Component\ClassLoader\Psr4ClassLoader->loadClass('MNAddEmotionAtt...')
#5 [internal function]: spl_autoload_call('MNAddEmotionAtt...')
#6 engine/Shopware/Bundle/PluginInstallerBundle/Service/PluginInitializer.php(118): class_exists('\MNAddEmotionAt...')
#7 engine/Shopware/Kernel.php(485): Shopware\Bundle\PluginInstallerBundle\Service\PluginInitializer->initializePlugins()
#8 engine/Shopware/Kernel.php(237): Shopware\Kernel->initializePlugins()
#9 recovery/update/src/DependencyInjection/Container.php(177): Shopware\Kernel->boot()
#10 recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(118): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))
#11 recovery/update/src/DependencyInjection/Container.php(186): Pimple\Container->offsetGet('shopware.contai...')
#12 recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(118): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))
#13 recovery/common/src/DependencyInjection/Container.php(71): Pimple\Container->offsetGet('shopware.theme_...')
#14 recovery/update/src/app.php(169): Shopware\Recovery\Common\DependencyInjection\Container->get('shopware.theme_...')
#15 [internal function]: {closure}()
#16 recovery/common/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#17 recovery/common/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()
#18 recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#19 recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#20 recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#21 recovery/common/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\PrettyExceptions->call()
#22 recovery/update/index.php(57): Slim\Slim->run()
#23 {main}