craft-stripecheckout icon indicating copy to clipboard operation
craft-stripecheckout copied to clipboard

Using array_key_exists() on objects is deprecated

Open myrepo-aw opened this issue 4 years ago • 1 comments

Hey, i thing the plugin needs an update, i was working with it and i got this error:

yii\base\ErrorException: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /myroot/vendor/stripe/stripe-php/lib/ApiRequestor.php:402

array_key_exists() is deprecated in PHP 7.4 so the plugin breaks, i had to change array_key_exist() for isset(), but this function was especting a second parameter, the only way i made it work was deleting 'request-id' parameter.

Do you have an other solution? Thanks!

myrepo-aw avatar Dec 01 '20 23:12 myrepo-aw

Added https://github.com/jalendport/craft-stripecheckout/pull/27 which should solve this.

bencroker avatar Jan 14 '21 20:01 bencroker