Add Symfony 8 and Behat 4 support#219
Add Symfony 8 and Behat 4 support#219shahinataei-ts wants to merge 1 commit intoFriendsOfBehat:masterfrom
Conversation
The extension code already has the required return types on process() methods, making it compatible with both Behat 3.x and 4.x interfaces. Changes: - Update behat/behat constraint to ^3.22 || ^4.0 - Update symfony/* dependencies to include ^8.0 - Add CI matrix entry for Symfony 8.0 with Behat 4.x-dev Note: Symfony 8 requires Behat 4.x-dev as Behat 3.x doesn't declare Symfony 8 compatibility in its composer.json constraints. Relates to Behat/Behat#1687
|
Careful: There is no Behat 4 (yet), so you cannot truly know what the API might look like or how it might change. So maybe it's too early to declare compatibility. |
Thanks @mpdude, fair point. You're right that Behat 4 isn't released yet. However, we're blocked on Symfony 8 since Behat 3.x doesn't support it, and the extension only uses core Behat interfaces that are unlikely to change before release. If you prefer a more conservative approach, I'm happy to:
What works best for this project? |
|
You need also to add extension in configuration: Also, Behat 4.0 won't support YAML configuration, so Flex fixtures will need to be adjusted later. |
Summary
This PR adds support for Symfony 8 and Behat 4.
The extension code already has the required return types on
process()methods, making it compatible with both Behat 3.x and 4.x interfaces (as noted by @mpdude in #218).Changes
behat/behatconstraint to^3.22 || ^4.0symfony/*dependencies to include^8.0Notes
Related