When switching to PHP 8, i get this error on one of my subshops landingpage:
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php:18 Stack trace: #0 /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php(18): array_key_exists() #1 /myPath/custom/plugins/MollieShopware/Components/ApplePayDirect/Services/ApplePayButtonBuilder.php(104): MollieShopware\Components\Country\CountryIsoParser->getISO() #2 /myPath/custom/plugins/MollieShopware/Subscriber/ApplePayDirectSubscriber.php(92): MollieShopware\Components\ApplePayDirect\Services\ApplePayButtonBuilder->addButtonStatus() #3 /myPath/engine/Library/Enlight/Event/Handler/Default.php(90): MollieShopware\Subscriber\ApplePayDirectSubscriber->onFrontendPostDispatch() #4 /myPath/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute() #5 /myPath/engine/Library/Enlight/Controller/Action.php(224): Enlight_Event_EventManager->notify() #6 /myPath/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #7 /myPath/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch() #8 /myPath/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch() #9 /myPath/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #10 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #11 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #12 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() #13 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() #14 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() #15 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() #16 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #17 /myPath/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #18 {main} thrown in /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php on line 18
When switching to PHP 8, i get this error on one of my subshops landingpage:
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php:18 Stack trace: #0 /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php(18): array_key_exists() #1 /myPath/custom/plugins/MollieShopware/Components/ApplePayDirect/Services/ApplePayButtonBuilder.php(104): MollieShopware\Components\Country\CountryIsoParser->getISO() #2 /myPath/custom/plugins/MollieShopware/Subscriber/ApplePayDirectSubscriber.php(92): MollieShopware\Components\ApplePayDirect\Services\ApplePayButtonBuilder->addButtonStatus() #3 /myPath/engine/Library/Enlight/Event/Handler/Default.php(90): MollieShopware\Subscriber\ApplePayDirectSubscriber->onFrontendPostDispatch() #4 /myPath/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute() #5 /myPath/engine/Library/Enlight/Controller/Action.php(224): Enlight_Event_EventManager->notify() #6 /myPath/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #7 /myPath/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch() #8 /myPath/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch() #9 /myPath/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #10 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #11 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #12 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() #13 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() #14 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() #15 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() #16 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #17 /myPath/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #18 {main} thrown in /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php on line 18