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
[Tentative] Drop PHP < 8 #1054
[Tentative] Drop PHP < 8 #1054
Conversation
I have a few followups for this one :D |
a816264
to
f5d30ff
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.x #1054 +/- ##
============================================
+ Coverage 92.54% 92.66% +0.11%
+ Complexity 1239 1238 -1
============================================
Files 111 111
Lines 3405 3447 +42
============================================
+ Hits 3151 3194 +43
+ Misses 254 253 -1 ☔ View full report in Codecov by Sentry. |
Once we settle on a version and merge we can use php-cs-fixer to make migrations of old style php docs to native types and other code modinizatios automatically in follow up, that way we can heep the version deprication PR as simple to review as possible |
Yes, but sadly many of them are incomplete, for instance, many of our PHPDoc types miss a nullable flag: |
And why the test fail is actually for the same reason. PHPDoc said |
486914f
to
4a065a8
Compare
Well I feel that this is even more of a reason to split it in multiple PRs |
Oh, I have already few other branches soon to be pushed. 😄 |
# Conflicts: # .travis.yml # build.properties # composer.json # src/main/php/PHPMD/ParserFactory.php # src/test/php/PHPMD/AbstractTest.php # src/test/php/PHPMD/Node/ASTNodeTest.php # src/test/php/PHPMD/Node/ClassNodeTest.php # src/test/php/PHPMD/Node/FunctionTest.php # src/test/php/PHPMD/Node/MethodNodeTest.php # src/test/php/PHPMD/ParserFactoryTest.php # src/test/php/PHPMD/ParserTest.php # src/test/php/PHPMD/Regression/AcceptsFilesAndDirectoriesAsInputTicket001Test.php # src/test/php/PHPMD/Regression/MaximumNestingLevelTicket24975295Test.php # src/test/php/PHPMD/Renderer/HTMLRendererTest.php # src/test/php/PHPMD/RuleTest.php # src/test/php/PHPMD/TextUI/CommandLineOptionsTest.php
This reverts commit 4e83997.
Reset 3.x to current master state
Upgrade to PHPUnit 10
Cool! will make development much more pleasant :) |
src/test/php/PHPMD/Regression/UnusedParameterArgvTicket14990109RegressionTestCase.php
Show resolved
Hide resolved
...hp/PHPMD/Regression/SuppressWarningsNotAppliesToUnusedPrivateMethod036RegressionTestCase.php
Show resolved
Hide resolved
src/test/php/PHPMD/Regression/SuperGlobalsFlaggedAsUnusedTicket019RegressionTestCase.php
Show resolved
Hide resolved
src/test/php/PHPMD/Regression/StaticVariablesFlaggedAsUnusedTicket020RegressionTestCase.php
Show resolved
Hide resolved
src/test/php/PHPMD/Regression/MaximumNestingLevelTicket24975295RegressionTestCase.php
Show resolved
Hide resolved
...PHPMD/Regression/InvalidUnusedLocalVariableAndFormalParameterTicket007RegressionTestCase.php
Show resolved
Hide resolved
...p/PHPMD/Regression/ExcessivePublicCountWorksCorrectlyWithStaticMethodsRegressionTestCase.php
Show resolved
Hide resolved
...st/php/PHPMD/Regression/ExcessivePublicCountRuleNeverExecutedTicket015RegressionTestCase.php
Show resolved
Hide resolved
src/test/php/PHPMD/Regression/AcceptsFilesAndDirectoriesAsInputTicket001RegressionTestCase.php
Show resolved
Hide resolved
I prefer to first get a project to pass PHPStan level 9 before doing the conversion for this reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, finished the review of this juggernaut. Looking forward to when we can merge this :)
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me, the few remaining comments I had can easily be addressed/checked in a follow up so I'll do that as the next thing on my list.
3f5e68e
to
e6ac5ed
Compare
Type: refactoring
Breaking change: yes
This an exploration PR to see what it would take to migrate the stack for the project and verify consequences.