The issue is: GrumPHP 0.18 uses the --names option for PHPCPD, but this option has been removed in PHPCPD v6 (see Changelog.
This results in the following message being output as soon as a phpcpd task is configured:
phpcpd 6.0.3 by Sebastian Bergmann.
Unknown option "--names"
I guess a simple change in the version requirement, using something like "sebastianbergmann/phpcpd": ">=4.0 <6.0" should fix it.
But I'm not sure of why the requirement was relaxed in the first place, so there may be additional implications here.
Hope this helps :)
And thanks a lot for maintaining this carefully-crafted toolkit! This has proven very useful.
Best regards,
GM
Hello!
I just did upgraded from v1.4.0 to 1.5.0 on a project, and found out there seems to be an incompatibility between two dependencies.
The current (v1.5.0) composer.json states:
The issue is: GrumPHP 0.18 uses the
--names
option for PHPCPD, but this option has been removed in PHPCPD v6 (see Changelog.This results in the following message being output as soon as a
phpcpd
task is configured:I guess a simple change in the version requirement, using something like
"sebastianbergmann/phpcpd": ">=4.0 <6.0"
should fix it. But I'm not sure of why the requirement was relaxed in the first place, so there may be additional implications here.Hope this helps :) And thanks a lot for maintaining this carefully-crafted toolkit! This has proven very useful. Best regards, GM