propelorm/Propel2

Support Symfony v7 components

Closed this issue ยท 4 comments

Support Symfony v7 components

A good idea! Any PRs we can start with? :)

pableu commented

What are your thoughts on dropping support for unsupported Symfony versions?

https://symfony.com/releases:

  • Symfony 4 is unsupported (=end of life)
  • Symfony 5.4 has support until 2025
  • Symfony 6.4 until 2027

But even if we drop unsupported versions, I think it'll be very challenging to have support for Symfony 5, 6 and 7 at the same time. Symfony 7 introduced numerous strict types, I doubt it's possible to implement those changes in this library in a way that works with Symfony 6 and 7 at the same time.

Just as an example: The properties of \Propel\Runtime\Validator\Constraints\Date would need to be typed for Symfony 7 compatibility, but they can not be typed for Symfony 6 compatibility.

Since this is still in beta, should we just go for it and require Symfony 7 components and PHP 8.2?

@PhilinTv I opened a PR to allow Symfony 7 here: #1992

Resolved in the last release ๐Ÿ˜‰