Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP-CS-Fixer @PHP56Migration changes #846

Merged
merged 1 commit into from
Jan 30, 2020
Merged

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe @richardm-stripe

PHP-CS-Fixer actually has a ton of features I only learned about yesterday. One of these is "risky" rulesets that you can use when upgrading PHP or PHPUnit versions to automatically upgrade to newer syntaxes.

In this case I ran ./vendor/bin/php-cs-fixer fix --allow-risky=yes --rules=@PHP56Migration:risky .. The only change is replacing the use of the pow() function with the ** operator introduced in PHP 5.6 (https://www.php.net/manual/en/language.operators.arithmetic.php).

(This is "risky" because the pow() function might have been overridden, but that's not the case for us.)

@ob-stripe ob-stripe merged commit a6ddfd2 into master Jan 30, 2020
@ob-stripe ob-stripe deleted the ob-phpcsfixer-php56migration branch January 30, 2020 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants