Skip to content

Invalid version string "1.1.0,,<2.0" #305

@Zaporozhec7

Description

@Zaporozhec7

When I try to update packages, was faced with this issue:

[UnexpectedValueException]
Could not parse version constraint >=1.1.0,,<2.0: Invalid version string "1.1.0,,<2.0"

While trying to find cause of this exception i was found that it was caused by whitespace after comma. And i'm not sure, but seems that constraint was created from constraint "^3.0.1".

In my case, as temporary solution, was help adding:

$range = str_replace(', ', ',', $range);

After this line

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions