TypeError: array_key_last(): Argument #1 ($array) must be of type array, string given in xx/Controller/IyzicoBase/IyzicoPkiStringBuilder.php:109
I’m getting this error when I try so save api configure for Iyzico payment gateway TypeError: array_key_last(): Argument #1 ($array) must be of type array, string given in /chroot/home/a94b818d/de88c03958.nxcli.io/app/code/Iyzico/Iyzipay/Controller/IyzicoBase/IyzicoPkiStringBuilder.php:109 Stack trace: #0 /chroot/home/a94b818d/de88c03958.nxcli.io/app/code/Iyzico/Iyzipay/Controller/IyzicoBase/IyzicoPkiStringBuilder.php(109): array_key_last(‘tr’) #1 /chroot/home/a94b818d/de88c03958.nxcli.io/app/code/Iyzico/Iyzipay/Observer/IyzipayConfigSaveBefore.php(77): IyzicoIyzipayControllerIyzicoBaseIyzicoPkiStringBuilder->pkiStringGenerate(Object(stdClass)) #2 /chroot/home/a94b818d/de88c03958.nxcli.io/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): IyzicoIyzipayObserverIyzipayConfigSaveBefore->execute(Object(MagentoFrameworkEventObserver))… Read More »TypeError: array_key_last(): Argument #1 ($array) must be of type array, string given in xx/Controller/IyzicoBase/IyzicoPkiStringBuilder.php:109