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

When I run the script it errors out #5

Open
ghost opened this issue Nov 21, 2016 · 5 comments
Open

When I run the script it errors out #5

ghost opened this issue Nov 21, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 21, 2016

PHP Fatal error: Uncaught Error: Call to a member function getType() on string in DesignPatternDetector/vendor/phpmetrics/phpmetrics/src/Hal/Component/OOP/Extractor/Extractor.php:89

@gmponos
Copy link

gmponos commented Dec 7, 2016

I am having the same issue.

@0x9d8e
Copy link

0x9d8e commented Apr 18, 2017

[Symfony\Component\Debug\Exception\FatalThrowableError]
Type error: Argument 1 passed to Hal\Component\File\Finder::__construct() m
ust be of the type array, string given, called in /home/ivan/Projects/Desig
nPatternDetector/DesignPatternDetector/src/Hal/Application/Command/RunPatte
rnCommand.php on line 74

@dtr0yan
Copy link

dtr0yan commented May 5, 2017

Guys, you need to start script by executing next:
./vendor/bin/phpmetrics <path-to-your-code>

@vukanac
Copy link

vukanac commented May 17, 2017

That command does not produce expected output about used design patterns.
It should be something like:
$ ./bin/design-pattern /projects/project/src/

@vukanac
Copy link

vukanac commented May 17, 2017

With hope to re-alive this repo, I tried to upgrade required libs to the latest, and fix 3 bugs (similar) but have the new one:

Extracting classes
  0/27 [>---------------------------]   0%

  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Class 'Hal\Component\Token\Tokenizer' not found

From phpmetrics Tokenizer is removed.

If someone can say or help with what to change Tokenizer.

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

4 participants