Skip to content

[RFC]: Allow better constraint handling for PHP #117

@dereuromark

Description

@dereuromark

RFC

Goal

Set PHP constraint to normal industry default and recommended setting

Background

Right now CI for many projects and libraries is blocked due to this library:

    - laminas/laminas-diactoros[2.2.2, ..., 2.4.1] require php ^7.1 -> your php version (8.2.0-dev) does not satisfy that requirement.
    - laminas/laminas-diactoros[2.5.0, ..., 2.6.0] require php ^7.3 || ~8.0.0 -> your php version (8.2.0-dev) does not satisfy that requirement.
    - laminas/laminas-diactoros[2.7.0, ..., 2.14.0] require php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0-dev) does not satisfy that requirement.
    - laminas/laminas-diactoros[2.15.0, ..., 2.17.0] require php ^7.4 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0-dev) does not satisfy that requirement.

I also dont see any beta branch to checkout instead to allow CI to check early on if there are any issues with 8.2 RC currently.

Proposal(s)

Set PHP constraint to normal industry default and recommended setting of semver

^7.4 || ^8.0

or even - which everyone normally does -

>=7.4

Any issues that appear theoretically (in beta/RC phase) can easily be fixed way in advance using CI.
Usually, within semver, this is only about deprecations, so no real issue anyway.
And for major issues, people know to use the latest versions then on their own. No need to overdo the constraints here.

OR

As an alternative providing a branch or setup that allows using this library in a less blocking nature.

OR

Already test and finish the 8.2+ support as right now we are in RC phase already for months, github actions can have this job already to check in CI.

Metadata

Metadata

Assignees

Labels

InvalidThis doesn't seem rightRFCWon't FixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions