Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running script #7

Open
maxprihodko8 opened this issue May 25, 2018 · 2 comments
Open

Issue running script #7

maxprihodko8 opened this issue May 25, 2018 · 2 comments

Comments

@maxprihodko8
Copy link

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Hal\Component\File\Finder::__construct() must be of the type array, string given, called in /srv/http/codeCheckers/DesignPatternDetector/src/Hal/Application/Command/RunPatternCommand.php on line 74 and defined in /srv/http/codeCheckers/DesignPatternDetector/vendor/halleck45/phpmetrics/src/Hal/Component/File/Finder.php:55

@majidkashefy1
Copy link

how can run script?

@medilies
Copy link

medilies commented Nov 3, 2023

same bug on PHP 8.1.6

php ./bin/design-pattern C:\Dev\row-bloom\core
Design pattern detector by Jean-François Lépine <https://twitter.com/Halleck45>

PHP Fatal error:  Uncaught TypeError: Hal\Component\File\Finder::__construct(): Argument #1 ($extensions) must be of type array, string given, called in C:\Dev\DesignPatternDetector\src\Hal\Application\Command\RunPatternCommand.php on line 74 and defined in C:\Dev\DesignPatternDetector\vendor\halleck45\phpmetrics\src\Hal\Component\File\Finder.php:45
Stack trace:
#0 C:\Dev\DesignPatternDetector\src\Hal\Application\Command\RunPatternCommand.php(74): Hal\Component\File\Finder->__construct('php', 'Tests|tests|Fea...')
#1 C:\Dev\DesignPatternDetector\vendor\symfony\console\Command\Command.php(245): Hal\Application\Command\RunPatternCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 C:\Dev\DesignPatternDetector\vendor\symfony\console\Application.php(835): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 C:\Dev\DesignPatternDetector\vendor\symfony\console\Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Hal\Application\Command\RunPatternCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 C:\Dev\DesignPatternDetector\vendor\symfony\console\Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 C:\Dev\DesignPatternDetector\bin\design-pattern(22): Symfony\Component\Console\Application->run()
#6 {main}
  thrown in C:\Dev\DesignPatternDetector\vendor\halleck45\phpmetrics\src\Hal\Component\File\Finder.php on line 45

Fatal error: Uncaught TypeError: Hal\Component\File\Finder::__construct(): Argument #1 ($extensions) must be of type array, string given, called in C:\Dev\DesignPatternDetector\src\Hal\Application\Command\RunPatternCommand.php on line 74 and defined in C:\Dev\DesignPatternDetector\vendor\halleck45\phpmetrics\src\Hal\Component\File\Finder.php:45
Stack trace:
#0 C:\Dev\DesignPatternDetector\src\Hal\Application\Command\RunPatternCommand.php(74): Hal\Component\File\Finder->__construct('php', 'Tests|tests|Fea...')
#1 C:\Dev\DesignPatternDetector\vendor\symfony\console\Command\Command.php(245): Hal\Application\Command\RunPatternCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 C:\Dev\DesignPatternDetector\vendor\symfony\console\Application.php(835): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 C:\Dev\DesignPatternDetector\vendor\symfony\console\Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Hal\Application\Command\RunPatternCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 C:\Dev\DesignPatternDetector\vendor\symfony\console\Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 C:\Dev\DesignPatternDetector\bin\design-pattern(22): Symfony\Component\Console\Application->run()
#6 {main}
  thrown in C:\Dev\DesignPatternDetector\vendor\halleck45\phpmetrics\src\Hal\Component\File\Finder.php on line 45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants