This repository was archived by the owner on Jan 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 189
--min-lines, --min-tokens, and --fuzzy commandline options do not work #181
Labels
bug
Indicates an unexpected problem or unintended behavior
Comments
Please do not post screenshots but paste output as text, please. |
I am facing the very same issue.
Did the API changed with v 5.0.0 ? |
I cannot reproduce the issue:
What am I missing? |
Update: Output with PHP7.2: (it is not compatible as I just realized :-D)
Output with PHP 7.4:
|
PHP 7.2 is dead (at least to me). PHPCPD 5 is not supported on PHP 7.2. I cannot reproduce this with PHP 7.4. |
sebastianbergmann
pushed a commit
that referenced
this issue
Feb 20, 2020
Will fix #181 Though Im not sure if it is the correct method. But as symfony ArgvInput is missing type casting, I think this is the only way to fix it
Same issue on PHP 7.3 gitlab runner:
|
@sebastianbergmann you need to add --min-lines=10 to your command. As described in my PR - when you type something in the command, it will be added as a string, as there are no type casting in ArgvInput |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
SebastianBergmann\PHPCPD\Detector\Detector::copyPasteDetection
expects arguments as int but command line arguments are passed as strings.The text was updated successfully, but these errors were encountered: