PHP Fatal error: Uncaught TypeError: Argument 1 passed to Hal\Component\File\Finder::__construct() must be of the type array, string given, called in /var/www/DesignPatternDetector/src/Hal/Application/Command/RunPatternCommand.php on line 74 and defined in /var/www/DesignPatternDetector/vendor/halleck45/phpmetrics/src/Hal/Component/File/Finder.php:53
Stack trace:
Execution of code not result in proper output, details below.
cmd used: ./bin/design-pattern ../laravel/vendor
Output with error: Design pattern detector by Jean-François Lépine https://twitter.com/Halleck45
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Hal\Component\File\Finder::__construct() must be of the type array, string given, called in /var/www/DesignPatternDetector/src/Hal/Application/Command/RunPatternCommand.php on line 74 and defined in /var/www/DesignPatternDetector/vendor/halleck45/phpmetrics/src/Hal/Component/File/Finder.php:53 Stack trace:
0 /var/www/DesignPatternDetector/src/Hal/Application/Command/RunPatternCommand.php(74): Hal\Component\File\Finder->__construct()
1 /var/www/DesignPatternDetector/vendor/symfony/console/Command/Command.php(245): Hal\Application\Command\RunPatternCommand->execute()
2 /var/www/DesignPatternDetector/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\Command->run()
3 /var/www/DesignPatternDetector/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand()
4 /var/www/DesignPatternDetector/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun()
5 /var/www/DesignPatt in /var/www/DesignPatternDetector/vendor/halleck45/phpmetrics/src/Hal/Component/File/Finder.php on line 53