Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

--min-lines, --min-tokens, and --fuzzy commandline options do not work #182

Closed
lsv opened this issue Feb 20, 2020 · 1 comment
Closed

--min-lines, --min-tokens, and --fuzzy commandline options do not work #182

lsv opened this issue Feb 20, 2020 · 1 comment
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@lsv
Copy link
Contributor

lsv commented Feb 20, 2020

After 5.0 this curl -OL https://phar.phpunit.de/phpcpd.phar && php phpcpd.phar src/ --min-lines=50 command does not work anymore.

PHP 7.4

PHP Fatal error:  Uncaught TypeError: Argument 2 passed to SebastianBergmann\PHPCPD\Detector\Detector::copyPasteDetection() must be of the type int, string given, called in phar:///home/lsv/Projects/phpcpd.phar/src/CLI/Command.php on line 140 and defined in phar:///home/lsv/Projects/phpcpd.phar/src/Detector/Detector.php:35
Stack trace:
#0 phar:///home/lsv/Projects/phpcpd.phar/src/CLI/Command.php(140): SebastianBergmann\PHPCPD\Detector\Detector->copyPasteDetection()
#1 phar:///home/lsv/Projects/phpcpd.phar/symfony/console/Command/Command.php(255): SebastianBergmann\PHPCPD\CLI\Command->execute()
#2 phar:///home/lsv/Projects/phpcpd.phar/symfony/console/Application.php(925): Symfony\Component\Console\Command\Command->run()
#3 phar:///home/lsv/Projects/phpcpd.phar/symfony/console/Application.php(265): Symfony\Component\Console\Application->doRunCommand()
#4 phar:///home/lsv/Projects/phpcpd.phar/src/CLI/Application.php(65) in phar:///home/lsv/Projects/phpcpd.phar/src/Detector/Detector.php on line 35
@lsv
Copy link
Contributor Author

lsv commented Feb 20, 2020

Dublicate of #181

@lsv lsv closed this as completed Feb 20, 2020
@sebastianbergmann sebastianbergmann changed the title [5.0] Uncaught TypeError: Argument 2 passed to Detector::copyPasteDetection() must be of the type int, string given --min-lines, --min-tokens, and --fuzzy commandline options do not work Feb 20, 2020
@sebastianbergmann sebastianbergmann self-assigned this Feb 20, 2020
@sebastianbergmann sebastianbergmann added the bug Indicates an unexpected problem or unintended behavior label Feb 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants