Open alexander-schranz opened 2 months ago
SuluHeadlessBundle Support: https://github.com/sulu/SuluHeadlessBundle/pull/139
SuluContentBundle: https://github.com/sulu/SuluContentBundle/pull/258
SuluCommentBundle: https://github.com/sulu/SuluCommentBundle/pull/53
Added also: https://github.com/php-task/php-task/ and https://github.com/php-task/TaskBundle to the list.
PS: we should keep all Sulu bundles compatible to PHP 8.0 and Sulu 2.5.
@TheCadien I updated https://github.com/sulu/SuluHeadlessBundle/pull/139 to show a better example how we can test current Pull Requests against Symfony 7 and also keep the supports for older Symfony and PHP versions. Which should not require newer versions if not really needed.
@TheCadien the core is merged which should make updating and testing the upgrade easier as we not longer need to set the fork.
Problem description
Bring Symfony 7 compatibility to Sulu 2.6.
Projects:
Add compatibility to Symfony 7, the bundles should still be compatible to PHP 8.0 and Sulu 2.5.
Proposed solution
Mostly upgrade and see what is failing and check such things where changed in Symfony 7 support for Sulu. Mostly bundles need also add support for doctrine/persistence 3 before they can upgrade to Symfony 6.4 / 7.0.
Compatibility Sulu Core:
Testing PHP Fatal error: Declaration of Symfony\Bridge\Doctrine\Validator\DoctrineInitializer::initialize(object $object) must be compatible with Symfony\Component\Validator\ObjectInitializerInterface::initialize(object $object): void in /home/runner/work/sulu/sulu/vendor/symfony/doctrine-bridge/Validator/DoctrineInitializer.php on line 34
( https://github.com/symfony/symfony/pull/51630 )PHP Fatal error: Declaration of Sulu\Bundle\SecurityBundle\Security\AuthenticationEntryPoint::start(Symfony\Component\HttpFoundation\Request $request, ?Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null) must be compatible with Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface::start(Symfony\Component\HttpFoundation\Request $request, ?Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null): Symfony\Component\HttpFoundation\Response in /home/runner/work/sulu/sulu/src/Sulu/Bundle/SecurityBundle/Security/AuthenticationEntryPoint.php on line 25
Dependencies: