Giter Club home page Giter Club logo

Comments (6)

fonsecas72 avatar fonsecas72 commented on May 18, 2024

Maybe this is related #33 ?

from phpmetrics.

Halleck45 avatar Halleck45 commented on May 18, 2024

Maybe this is related #33 ?

Maybe. I've added verbosity in this error with this commit

@ThePixelDeveloper, can you retry with the latest phar or updating sources please ?

from phpmetrics.

ThePixelDeveloper avatar ThePixelDeveloper commented on May 18, 2024

Tried again and got the following

[Exception]
  a 'Exception' exception occured analyzing file ./mailchimp/MCAPI.class.php
  Message: Closure detected instead of method
  Details:
  ------------
  Stack:
  #0 phar:///usr/local/bin/phpmetrics/src/Hal/Component/OOP/Extractor/Extractor.php(127): Hal\Component\OOP\Extractor\MethodExtractor->extract(4805, Object(Hal\Compon
  ent\Token\TokenCollection))
  #1 phar:///usr/local/bin/phpmetrics/src/Hal/Application/Command/Job/Analyze/FileAnalyzer.php(138): Hal\Component\OOP\Extractor\Extractor->extract('./html/sites/al..
  .')
  #2 phar:///usr/local/bin/phpmetrics/src/Hal/Application/Command/Job/DoAnalyze.php(121): Hal\Application\Command\Job\Analyze\FileAnalyzer->execute('./html/sites/al..
  .')
  #3 phar:///usr/local/bin/phpmetrics/src/Hal/Application/Command/Job/Queue.php(51): Hal\Application\Command\Job\DoAnalyze->execute(Object(Hal\Component\Result\Result
  Collection), Object(Hal\Component\Result\ResultCollection))
  #4 phar:///usr/local/bin/phpmetrics/src/Hal/Application/Command/RunMetricsCommand.php(119): Hal\Application\Command\Job\Queue->execute(Object(Hal\Component\Result\R
  esultCollection), Object(Hal\Component\Result\ResultCollection))
  #5 phar:///usr/local/bin/phpmetrics/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(253): Hal\Application\Command\RunMetricsCommand->execute(Ob
  ject(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #6 phar:///usr/local/bin/phpmetrics/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Sym
  fony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #7 phar:///usr/local/bin/phpmetrics/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Objec
  t(Hal\Application\Command\RunMetricsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #8 phar:///usr/local/bin/phpmetrics/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfo
  ny\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #9 /usr/local/bin/phpmetrics(17): Symfony\Component\Console\Application->run()
  #10 {main}
  ------------
  Do not hesitate to report a bug: https://github.com/Halleck45/PhpMetrics/issues

from phpmetrics.

fonsecas72 avatar fonsecas72 commented on May 18, 2024

Although the project targets a lower PHP version than 5.4

Can you tell what's the exact PHP version?

from phpmetrics.

Halleck45 avatar Halleck45 commented on May 18, 2024

MCAPI.class.php is a very old file. PhpMetrics probably cannot support this file. I'll try to fix that.

I found the file here, but what's the version of your file ? Can you create a gist with the content of your MCAPI.class.php file ?

from phpmetrics.

Halleck45 avatar Halleck45 commented on May 18, 2024

No update since 6 month, I close this issue

from phpmetrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.