You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System / Distribution & Version: (Linux)
Current Behavior
For now you can use php-includepath setting as an alternative path. It means that you try to find a ruleset with pathes from get_include_path() ini setting then you try to find that with <php-includepath> setting.
Expected Behavior
Proposition to use <php-includepath> as priority path instead of alternative. It means that paths from this setting should be added at the beginning of the include_path ini setting.
Steps To Reproduce:
if you use ruleset path that exist with some path from get_include_path(). it make it impossible to use that with a path <php-includepath>. Anyway you return the path from existing pathes from get_include_path().
Checks before submitting
Be sure that there isn't already an issue about this. See: Issues list
Be sure that there isn't already a pull request about this. See: Pull requests
I have added every step to reproduce the bug.
If possible I added relevant code examples.
This issue is about 1 bug and nothing more.
The issue has a descriptive title. For example: "JSON rendering failed on Windows for filenames with space".
Code example.
PHPMD\RuleSetFactory::224 line
Proposition to change $includePath = get_include_path() . PATH_SEPARATOR . $includePath;
to $includePath .= PATH_SEPARATOR . get_include_path();.
The text was updated successfully, but these errors were encountered:
Current Behavior
For now you can use
php-includepath
setting as an alternative path. It means that you try to find a ruleset with pathes from get_include_path() ini setting then you try to find that with<php-includepath>
setting.Expected Behavior
Proposition to use
<php-includepath>
as priority path instead of alternative. It means that paths from this setting should be added at the beginning of theinclude_path
ini setting.Steps To Reproduce:
if you use ruleset path that exist with some path from
get_include_path()
. it make it impossible to use that with a path<php-includepath>
. Anyway you return the path from existing pathes fromget_include_path()
.Checks before submitting
Code example.
PHPMD\RuleSetFactory::224 line
Proposition to change
$includePath = get_include_path() . PATH_SEPARATOR . $includePath;
to
$includePath .= PATH_SEPARATOR . get_include_path();
.The text was updated successfully, but these errors were encountered: