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
A quick workaround if to ignore all versions that starts with dev- (which are all branch that does represent a version number)
(And ignoing all versions that ends with -dev will get rid of number branches)
The text was updated successfully, but these errors were encountered:
UFOMelkor
added a commit
to UFOMelkor/PhpMetrics
that referenced
this issue
May 8, 2018
Hi,
With PhpMetrics v2.3.2 (probably true with previous versions), the package version parsing from Packagist can result in wrong version number.
Example, the package
liip/imagine-bundle
output the lastest version to be2.01.0
, but the lastest release is1.9.1
.The issue is from the line https://github.com/phpmetrics/PhpMetrics/blob/master/src/Hal/Metric/System/Packages/Composer/Packagist.php#L40:
It strip all chars that are not a digit or a dot, but in the case of
liip/imagine-bundle
, a branch (which are display as a version in packagist) is nameddev-upgrade-2.0-from-1.0
, and so result into2.01.0
.A quick workaround if to ignore all versions that starts with
dev-
(which are all branch that does represent a version number)(And ignoing all versions that ends with
-dev
will get rid of number branches)The text was updated successfully, but these errors were encountered: