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

Bump PHP-CS-Fixer and update code #1057

Merged
merged 7 commits into from
Dec 9, 2020
Merged

Bump PHP-CS-Fixer and update code #1057

merged 7 commits into from
Dec 9, 2020

Conversation

ob-stripe
Copy link
Contributor

@ob-stripe ob-stripe commented Dec 8, 2020

r? @richardm-stripe
cc @stripe/api-libraries

Upgrade PHP-CS-Fixer to 2.17.1 and update code to be compliant with changes to the @PhpCsFixer ruleset.

This is a prerequisite to start supporting PHP 8, as the previously pinned version (2.16.5) does not support PHP 8.

I recommend reviewing commit by commit. The changes are fairly minor and affect mostly manually written files, with a couple of exceptions:

  • lib/Account.php: changes to a method defined via an override, so we can simply update the method definition in codegen to be consistent
  • lib/EphemeralKey.php: changes to the order in which traits are listed. I don't think we can easily fix this in codegen, as one trait (Delete) is added automatically and the other (Create) is added via an override. We can likely leave things as-is and just let the make fmt postprocess step fix things.

@ob-stripe ob-stripe merged commit 3febf22 into master Dec 9, 2020
@ob-stripe ob-stripe deleted the ob-bump-php-cs-fixer branch December 9, 2020 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants