Skip to content

Special handling required for stability suffixes #1548

@fredden

Description

@fredden

Following on from composer/composer#12719, I have today learned that the stability suffixes apply to the package and not the particular version constraint that it is written on. This means that the following composer.json can be further normalised:

{
    "require": {
        "symfony/uid": "^8.0 || ~8.1.0@dev"
    }
}

With this composer.json, running composer update --prefer-lowest will install version v8.0.0-BETA1. This means that the constraint could be normalised to ^8.0@dev (as the ^8.0 already covers / includes ~8.1.0, and the @dev is handled separately to the version constraint). Or perhaps @dev ^8.0 would be a more clear way to normalise this constraint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions