Symfony 6 compatibility
xkzl opened this issue · comments
Hello guys,
Is there any plan to make compatibility with Symfony 6 ?
Cheers,
I tried it out with a local version, that works fine with the 6.0 versions of the required symfony-packages. Some deprecations pop up, when I use the bundle with Symfony 6.0.1 on PHP 8.0:
Method "Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder()" might add "TreeBuilder" as a native return type declaration in the future. Do the same in implementation "Nelmio\SecurityBundle\DependencyInjection\Configuration" now to avoid errors or add an explicit @return annotation to suppress this message.
Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "Nelmio\SecurityBundle\EventListener\ClickjackingListener" now to avoid errors or add an explicit @return annotation to suppress this message.
Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "Nelmio\SecurityBundle\EventListener\ContentSecurityPolicyListener" now to avoid errors or add an explicit @return annotation to suppress this message.
Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "Nelmio\SecurityBundle\EventListener\XssProtectionListener" now to avoid errors or add an explicit @return annotation to suppress this message.
Method "Twig\TokenParser\TokenParserInterface::parse()" might add "Node" as a native return type declaration in the future. Do the same in implementation "Nelmio\SecurityBundle\Twig\TokenParser\AbstractCSPParser" now to avoid errors or add an explicit @return annotation to suppress this message.
Method "Twig\TokenParser\TokenParserInterface::getTag()" might add "string" as a native return type declaration in the future. Do the same in implementation "Nelmio\SecurityBundle\Twig\TokenParser\AbstractCSPParser" now to avoid errors or add an explicit @return annotation to suppress this message.
FYI I just made a PR to add support for Symfony 6 and fix direct deprecation notices : #249