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.
@Halleck45 is it possible to publish a new phar?
Thanks!
Thanks for the bugfix