You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phpmd v3 is still under development?
What's the plan of the project?
I'm not sure what the best approach is. We once did a php-cs-fixer2 task which we eventually merged back to php-cs-fixer.
But of course there will be a period in between where both need to be available.
So maybe just adding a task phpmd3 would be fine for now? How do you see this?
phpmd v3 is still under development? What's the plan of the project?
Apparently so, I discussed with the maintainers here: phpmd/phpmd#1280
What's the plan of the project?
From my understanding 3.x-dev will be released to 3.0.0 when it's ready.
In the link provided above the maintainers said that the command-line is already stable enough in 3.x-dev.
I'm not sure what the best approach is. We once did a php-cs-fixer2 task which we eventually merged back to php-cs-fixer.
But of course there will be a period in between where both need to be available.
So maybe just adding a task phpmd3 would be fine for now? How do you see this?
It's an option, yes.
e.g. merging phpmd3 into phpmd when 3.0.0 is officially released.
But it would break all projects:
Projects that run phpmd3 would need to rename the task from phpmd3 to phpmd
Projects that run phpmd2 would need to upgrade to phpmd3
I'm not opposed to it, but ad long as there is no stable release I can't really merge given it's a BC liability.
So idd say just finish it and I'll merge once it's stable?
I'm not opposed to it, but ad long as there is no stable release I can't really merge given it's a BC liability. So idd say just finish it and I'll merge once it's stable?
The 2.x branch does not work with recent php versions (8.4+ iirc) and the maintainers don't want to continue updating it.
So for projects that use PHP >=8.4, the 3.x-dev branch already is the most stable version unfortunately (it is the only one that can be used).
Fair enough that it's the phpmd problem, but there will be a collision anyway when 3.0.0 is released (e.g. will have to create phpmd2 and phpmd main will be for version 3, it won't work for everyone who didn't upgrade in time otherwise)
Activity
guvra commentedon Mar 25, 2026
Example implementation with a separate task:
veewee commentedon Mar 25, 2026
Thanks for reporting.
phpmd v3 is still under development?
What's the plan of the project?
I'm not sure what the best approach is. We once did a php-cs-fixer2 task which we eventually merged back to php-cs-fixer.
But of course there will be a period in between where both need to be available.
So maybe just adding a task
phpmd3would be fine for now? How do you see this?guvra commentedon Mar 25, 2026
Apparently so, I discussed with the maintainers here: phpmd/phpmd#1280
From my understanding 3.x-dev will be released to 3.0.0 when it's ready.
In the link provided above the maintainers said that the command-line is already stable enough in 3.x-dev.
It's an option, yes.
e.g. merging phpmd3 into phpmd when 3.0.0 is officially released.
But it would break all projects:
phpmd3tophpmdguvra commentedon Mar 31, 2026
@veewee are you OK with a new task temporarily named
phpmd3? If so I can finalize my PR #1210veewee commentedon Mar 31, 2026
I'm not opposed to it, but ad long as there is no stable release I can't really merge given it's a BC liability.
So idd say just finish it and I'll merge once it's stable?
guvra commentedon Apr 2, 2026
The 2.x branch does not work with recent php versions (8.4+ iirc) and the maintainers don't want to continue updating it.
So for projects that use PHP >=8.4, the 3.x-dev branch already is the most stable version unfortunately (it is the only one that can be used).
veewee commentedon Apr 2, 2026
I know, but that sounds more of a phpmd problem than it is a grumphp problem from my point of view ...
novikor commentedon May 18, 2026
Fair enough that it's the phpmd problem, but there will be a collision anyway when 3.0.0 is released (e.g. will have to create
phpmd2andphpmdmain will be for version 3, it won't work for everyone who didn't upgrade in time otherwise)veewee commentedon May 19, 2026
@novikor, you might misunderstand: I am good with the PR, but I will only merge it once v3 is released.
arnedesmedt commentedon Oct 5, 2026
@veewee Looks like phpmd 3.0 is released 🎉
veewee commentedon Oct 16, 2026
Fixed in #1210