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

Apply all "safe" PHP migration style rules #1624

Merged
merged 13 commits into from
Aug 18, 2023

Conversation

williamjallen
Copy link
Collaborator

PHP-CS-Fixer provides a ruleset for most major and minor PHP versions which flags deprecated functions and ensures that our code style keeps up with modern PHP style guidelines. This PR is part of a series of improvements in which I intend to gradually turn on more style check rules as we modernize the codebase.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each commit makes sense and I don't see any issue with the resulting CDash instance!

I'll leave the documentation link about each migration that you sent here so that we can find what each migration was in the future

@williamjallen
Copy link
Collaborator Author

I'll wait to rebase this until after #1556 is merged.

@williamjallen
Copy link
Collaborator Author

@josephsnyder Resolving all of the git conflicts was difficult and resulted in invalid PHP in several places, so I simply recreated all of the changes. I think everything should be the same as before (except that it's rebased now), but I think it's worth having an extra pair of eyes take a look before merging this.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things still look good! I haven't been able to find anything on my manual testing and the CI failures don't seem to be related.

@williamjallen williamjallen added this pull request to the merge queue Aug 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 18, 2023
@williamjallen williamjallen added this pull request to the merge queue Aug 18, 2023
Merged via the queue into Kitware:master with commit 2d9faef Aug 18, 2023
1 check passed
@williamjallen williamjallen deleted the php-style-rules branch August 18, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants