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

Commit 0a76c51

Browse files
lsvsebastianbergmann
authored andcommitted
Update --min-lines to force it as a integer
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
1 parent 23751c8 commit 0a76c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLI/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
135135

136136
$clones = $detector->copyPasteDetection(
137137
$files,
138-
$input->getOption('min-lines'),
138+
(int) $input->getOption('min-lines'),
139139
$input->getOption('min-tokens'),
140140
$input->getOption('fuzzy')
141141
);

0 commit comments

Comments
 (0)