stripe / stripe-php

PHP library for the Stripe API.
https://stripe.com
MIT License
3.75k stars 848 forks source link

PHP 8.0 incompatibilities: #1739

Open Sangi0 opened 2 months ago

Sangi0 commented 2 months ago

Describe the bug

FILE: lib/Stripe/lib/HttpClient/CurlClient.php

FOUND 1 ERRORS AND 0 WARNINGS AFFECTING 1 LINES

202 | ERROR | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$method" was changed on line 198.

To Reproduce

Download MultiVendorX plugin >> Install the plugin PHP incompatibility >> Start scan and you will get the error

Expected behavior

There should not be any compatibility errors

Code snippets

No response

OS

macOS

PHP version

PHP 8.0

Library version

15.7.0

API version

2024-06-20

Additional context

No response

richardm-stripe commented 2 months ago

Hello @Sangi0, thanks for the report. We're exploring a fix for this in https://github.com/stripe/stripe-php/pull/1741