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

Bug on new phpmetrics.phar - v2.6.0 #426

Closed
pierre-vassoilles opened this issue Apr 2, 2020 · 5 comments
Closed

Bug on new phpmetrics.phar - v2.6.0 #426

pierre-vassoilles opened this issue Apr 2, 2020 · 5 comments
Labels

Comments

@pierre-vassoilles
Copy link

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
Copy link
Collaborator

Hi,

Sorry for the issue :(

v2.6.1 fixes the problem

Thanks for the report. I close this issue.

@Halleck45 Halleck45 added the bug label Apr 2, 2020
@jakzal
Copy link

jakzal commented Apr 3, 2020

@Halleck45 is it possible to publish a new phar?

@Halleck45
Copy link
Collaborator

@jakzal in the release list ?

If yes, #427 is fixed.

@Halleck45 Halleck45 reopened this Apr 6, 2020
@jakzal
Copy link

jakzal commented Apr 6, 2020

Thanks!

@pierre-vassoilles
Copy link
Author

Thanks for the bugfix 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants