Skip to content

Bump minimum requirements for a 2.8 release#47

Open
mpdude wants to merge 2 commits into
FriendsOfBehat:masterfrom
mpdude:bump-requirements
Open

Bump minimum requirements for a 2.8 release#47
mpdude wants to merge 2 commits into
FriendsOfBehat:masterfrom
mpdude:bump-requirements

Conversation

@mpdude

@mpdude mpdude commented Dec 19, 2025

Copy link
Copy Markdown

This raises minimum requirements to PHP 8.1, Symfony components with any kind of maintenance (if security only).

Test matrix covers:

  • PHP 8.1 with Symfony 5.4 components
  • PHP 8.1 with Symfony 6.4 components
  • PHP 8.2 – 8.4 with Symfony ^7.3 components

This raises minimum requirements to PHP 8.1, Symfony components with any kind of maintenance (if security only).
@mpdude mpdude force-pushed the bump-requirements branch from e05862e to b78c73b Compare January 14, 2026 17:56
@mpdude

mpdude commented Jan 14, 2026

Copy link
Copy Markdown
Author

@stof WDYT?

@mpdude

mpdude commented Jan 14, 2026

Copy link
Copy Markdown
Author

I could also use Flex to make sure also transitive Symfony dependencies match the given version.

@stof

stof commented Feb 13, 2026

Copy link
Copy Markdown
Member

using Flex would be better for 2 reasons:

  • it also locks transitive dependencies, matching the way this is used for projects locking a LTS version
  • Flex will combine its restriction with the actual package requirement instead of replacing the requirement entirely

- php-version: '8.1'
symfony-version: '5.4.*'
- php-version: '8.1'
symfony-version: '6.4.*'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also add an explicit job for Symfony 7.4, as it is also a LTS version.

- '7.4'
- '8.0'
- '8.1'
- '8.2'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also keep a job on PHP 8.1 with unmodified dependencies.

- '8.1'
- '8.2'
- '8.3'
- '8.4'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as you are adding new PHP versions, you can add 8.5 as well.

@acoulton

Copy link
Copy Markdown

Looks like this was partially addressed by #50 - although I agree it would be better to manage the symfony requirements with flex instead of the custom script.

It also looks like the project no longer declares its supported symfony/dependency-injection versions: Behat now recommends that extensions explicitly require symfony packages rather than depending on them as transitive Behat dependencies.

@mpdude

mpdude commented Jun 24, 2026

Copy link
Copy Markdown
Author

@pamil and/or @stof please advise how to proceed here after #50 and #51 were merged into master.

  • Shall we still try to put this on a 2.x branch?
  • Do we want to support Symfony 6.4 (LTS) on the 3.x/master version as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants