Behat: Support Symfony 5 packages

Created on 12 Dec 2019  路  8Comments  路  Source: Behat/Behat

BeHat uses Symfony components as per the package requirements (easy to confirm when checking the composer JSON file).

Given the latest version of Symfony is already available (5.0.1 at the moment) and knowing about the other opened issue to say farewell to unsupported versions of Symfony https://github.com/Behat/Behat/issues/1258 I suggest enabling support for the new version too.

~~ Edit ~~

Please note that I read all the comments on the other issue; I just added this one here because the purpose of the other one is to remove support for unsupported versions of Symfony.

Decouple matters :-)

Most helpful comment

Adding support for Symfony 5 will require dropping support for PHP < 7.2.

It is possible to write code compatible with Symfony 4.4 and 5.0 at the same time, but only when running on PHP 7.2+ (as it would require having the new typehints in our code to be compatible with the signature of 5.x interfaces, and adding types in child classes is forbidden in PHP 7.1 and older).

@everzet what is the plan to drop these PHP versions in Behat ?

Given PHP <7.2 is no longer supported, it feels wrong for any project to move forward supporting old versions of something (PHP <7.2) rather than new versions of something else (Symfony 5.0).

I realise it's far from being that simple and that maintaining two major versions of Behat would be a burden. However, given it's been well over a year since the last release, it doesn't seem like the community are crying out for bug fixes or new features in 3.5, so perhaps it's a sensible time to make some BC breaks like this one for a 4.0 release?

All 8 comments

Adding support for Symfony 5 will require dropping support for PHP < 7.2.

It is possible to write code compatible with Symfony 4.4 and 5.0 at the same time, but only when running on PHP 7.2+ (as it would require having the new typehints in our code to be compatible with the signature of 5.x interfaces, and adding types in child classes is forbidden in PHP 7.1 and older).

@everzet what is the plan to drop these PHP versions in Behat ?

Hello, I have the same issue, I can't update my project to Symfony 5.0 because this is unsupported by behat (console component). Any information about plan for this support ?

me too :(

same problem 馃槩

@everzet

Adding support for Symfony 5 will require dropping support for PHP < 7.2.

It is possible to write code compatible with Symfony 4.4 and 5.0 at the same time, but only when running on PHP 7.2+ (as it would require having the new typehints in our code to be compatible with the signature of 5.x interfaces, and adding types in child classes is forbidden in PHP 7.1 and older).

@everzet what is the plan to drop these PHP versions in Behat ?

Given PHP <7.2 is no longer supported, it feels wrong for any project to move forward supporting old versions of something (PHP <7.2) rather than new versions of something else (Symfony 5.0).

I realise it's far from being that simple and that maintaining two major versions of Behat would be a burden. However, given it's been well over a year since the last release, it doesn't seem like the community are crying out for bug fixes or new features in 3.5, so perhaps it's a sensible time to make some BC breaks like this one for a 4.0 release?

There is a well crafted PR here: https://github.com/Behat/Behat/pull/1256

Please try it to make it easier for maintainers to review/merge.

v3.6.0 supports Symfony 5, thanks all! 馃帀 https://github.com/Behat/Behat/releases/tag/3.6.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diamondsea picture diamondsea  路  6Comments

Nyholm picture Nyholm  路  10Comments

beeblebrox3 picture beeblebrox3  路  8Comments

stof picture stof  路  5Comments

acoulton picture acoulton  路  5Comments