phpmetrics / PhpMetrics

Beautiful and understandable static analysis tool for PHP

Home Page:https://phpmetrics.github.io/website/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug on new phpmetrics.phar - v2.6.0

pierre-vassoilles opened this issue · comments

Bug report

I'm using phpmetrics.phar, version 2.6.0 foundable there

The new version of phpmetrics introduced a constant named PROJECT_DIR which is defined in the executable file (bin/phpmetrics) but it seems not to be defined in the phar executable. @see build.php.

Here is my error :
Warning: Use of undefined constant PROJECT_DIR - assumed 'PROJECT_DIR' (this will throw an Error in a future version of PHP) in phar:///tools/phpmetrics/src/Hal/Report/Html/Reporter.php on line 68

Adding the line define('PROJECT_DIR', dirname(__DIR__)); in the phar build script should resolve it.

Hi,

Sorry for the issue :(

v2.6.1 fixes the problem

Thanks for the report. I close this issue.

@Halleck45 is it possible to publish a new phar?

@jakzal in the release list ?

If yes, #427 is fixed.

Thanks!

Thanks for the bugfix 😉