- Affected version
- 2.1.9
XenForo itself doesn't trigger this bug, but the stripe-php bundled with XenForo 2.1.x, will error if
ref: https://github.com/stripe/stripe-php/issues/896
toArray()
is called on the StripeObject
PHP:
ErrorException: [E_NOTICE] Trying to access array offset on value of type int src/vendor/stripe/stripe-php/lib/Util/Util.php:45
#0 src/vendor/stripe/stripe-php/lib/Util/Util.php(45): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/var/www/html/...', 45, Array)
#1 src/vendor/stripe/stripe-php/lib/Util/Util.php(51): Stripe\Util\Util::convertStripeObjectToArray(Array)
#2 src/vendor/stripe/stripe-php/lib/StripeObject.php(421): Stripe\Util\Util::convertStripeObjectToArray(Array)
ref: https://github.com/stripe/stripe-php/issues/896