Comments (6)
Maybe this is related #33 ?
from phpmetrics.
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.
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.
Although the project targets a lower PHP version than 5.4
Can you tell what's the exact PHP version?
from phpmetrics.
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.
No update since 6 month, I close this issue
from phpmetrics.
Related Issues (20)
- Deprecated messages with PHP 8.1 HOT 1
- Round "Average cyclomatic complexity by class" number HOT 4
- Change http to https HOT 1
- Add favicon
- Please add assets to latest tag (v2.8.0) HOT 3
- Error in html report HOT 1
- Show error if yaml_parse function does not exists HOT 1
- artifacts/phar has phpmetrics.deb?raw=true HOT 2
- page has invalid html HOT 8
- Wrong LCOM metric when using promoted properties in constructor HOT 3
- Support codeclimate/gitlab JSON report HOT 1
- Quick Start instructions: phpmetrics should run as Bash, not PHP HOT 5
- Formula HOT 6
- Cyclomatic complexity as distribution and overall volume calculation HOT 2
- PHP8 Issue on report-violations HOT 2
- Response for a class (RFC) measure HOT 2
- New project for code analysis
- Maintainability Index HOT 5
- PHP8 Issue Uncaught TypeError: round() HOT 2
- Add support nikic/php-parser:^5 (dependency for update phpunit:11)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpmetrics.