PHP Parse error: syntax error, unexpected '*' in /vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php on line 461" #919
Closed
Description
I believe that I have identified a bug in CurlClient which looks like bad syntax:
The above error was happening for me on the newest version of the library
7.28.1 - 2020-04-10
- #915 Improve PHPdocs for many classes
Error in new code:
$sleepSeconds = \min(
Stripe::getInitialNetworkRetryDelay() * 1.0 * 2 ** ($numRetries - 1),
Stripe::getMaxNetworkRetryDelay()
);
Working code in older version (6.4.2):
$sleepSeconds = min(
Stripe::getInitialNetworkRetryDelay() * 1.0 * pow(2, $numRetries - 1),
Stripe::getMaxNetworkRetryDelay()
);
Please only file issues here that you believe represent actual bugs or feature requests for the Stripe PHP library.
If you're having general trouble with your Stripe integration, please reach out to support using the form at https://support.stripe.com/ (preferred) or via email to support@stripe.com.
If you are reporting a bug, please include your PHP version and the version of the Stripe PHP library you're using, as well as any other details that may be helpful in reproducing the problem.
Metadata
Assignees
Labels
No labels