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

docs: Add supported PHP versions section to the README #6768

Merged
merged 12 commits into from Mar 12, 2023

Conversation

bocharsky-bw
Copy link
Contributor

I hope it will help with discovering supported versions better and prevent creating issues.

Ref: #6764 (comment)

@bocharsky-bw bocharsky-bw changed the title Add supported PHP versions section to the README docs: Add supported PHP versions section to the README Jan 31, 2023
README.md Outdated Show resolved Hide resolved
## Supported versions
* PHP 7.4
* PHP 8.0
* PHP 8.1
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we can put some guard (eg in tests/AutoReview/) to make sure that this list is up to date ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, it would be cool, I'll try to look at it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think 7910bf5 should be enough to notice any change in supported PHP versions

@coveralls
Copy link

coveralls commented Jan 31, 2023

Pull Request Test Coverage Report for Build 4366992768

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 77 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.04%) to 92.91%

Files with Coverage Reduction New Missed Lines %
src/Fixer/ClassNotation/SelfStaticAccessorFixer.php 1 98.46%
src/Fixer/AbstractPhpUnitFixer.php 6 0%
src/Fixer/ClassNotation/ClassDefinitionFixer.php 10 95.65%
src/Tokenizer/TokensAnalyzer.php 60 83.68%
Totals Coverage Status
Change from base Build 4048086535: -0.04%
Covered Lines: 22735
Relevant Lines: 24470

💛 - Coveralls

README.md Outdated
> NOTE: Each new PHP version requires a huge effort to support the new syntax.
> That's why the latest PHP version might not be supported yet. If you need it,
> please, consider supporting the project in any convenient way, for example
> with code contribution or reviewing existing RPs.
Copy link
Contributor

@94noni 94noni Feb 6, 2023

Choose a reason for hiding this comment

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

perhaps use GitHub note feature?

Note
foobar foo baz


What about also, as it is main readme new section of Supported PHP Versions
adding something telling that it can be run on new PHP version but "at own risk" leveraging PHP_CS_FIXER_IGNORE_ENV=1 ?
this paragraph alone may stop ppl using/testing/running on newer version
as it is require to manually do something to run it, I may think it is ok for dev

wdty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@94noni I like both suggestions and pushed changes to apply them, thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Since the information will be in README.md then we could have it removed from usage page.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I just mention it, but a more detailed explanation is still in the usage section. I think we should just link to it instead of copy/paste everything in the README

Copy link
Contributor

Choose a reason for hiding this comment

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

Who said anything about copy/pasting? I've suggested moving it, link is also fine.

@bocharsky-bw
Copy link
Contributor Author

@keradus Does it look better for you now?

README.md Outdated Show resolved Hide resolved
Co-authored-by: Kuba Werłos <werlos@gmail.com>
README.md Outdated Show resolved Hide resolved
Co-authored-by: Kuba Werłos <werlos@gmail.com>
README.md Outdated Show resolved Hide resolved
tests/AutoReview/ReadmeTest.php Outdated Show resolved Hide resolved
bocharsky-bw and others added 2 commits March 8, 2023 19:38
Co-authored-by: Grzegorz Korba <wirone@gmail.com>
Co-authored-by: Grzegorz Korba <wirone@gmail.com>
Copy link
Member

@keradus keradus left a comment

Choose a reason for hiding this comment

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

kudos

@keradus keradus merged commit 3d13b83 into PHP-CS-Fixer:master Mar 12, 2023
@bocharsky-bw bocharsky-bw deleted the patch-1 branch March 13, 2023 08:59
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

6 participants