[bug] Uncaught TypeError: Return value of SebastianBergmann\PHPCPD\CodeCloneMap::getAverageSize() must be of the type int, float returned
rmed19 opened this issue · 0 comments
PHP version : 7.3.10
PHPCPD version : 9af92a0
PHP Fatal error: Uncaught TypeError: Return value of SebastianBergmann\PHPCPD\CodeCloneMap::getAverageSize() must be of the type int, float returned in vendor/sebastian/phpcpd/src/CodeCloneMap.php:126
Stack trace:
#0 vendor/sebastian/phpcpd/src/Log/Text.php(72): SebastianBergmann\PHPCPD\CodeCloneMap->getAverageSize()
#1 vendor/sebastian/phpcpd/src/CLI/Command.php(148): SebastianBergmann\PHPCPD\Log\Text->printResult(Object(Symfony\Component\Console\Output\ConsoleOutput), Object(SebastianBergmann\PHPCPD\CodeCloneMap))
#2 vendor/symfony/console/Command/Command.php(255): SebastianBergmann\PHPCPD\CLI\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 vendor/symfony/console/Application.php(934): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Con in vendor/sebastian/phpcpd/src/CodeCloneMap.php on line 126