Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17618

Symfony 7 logging lots of deprecation warnings

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.0-a2
    • None
    • None

      Symfony 7 and Twig 3 are logging bajillions of user warnings to php logs about deprecations, current or expected, when using phpBB4 in development environments.

      just a small sampling:

      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: The "Symfony\Component\HttpKernel\DependencyInjection\Extension" class is considered internal since Symfony 7.1, to be deprecated in 8.1; use Symfony\Component\DependencyInjection\Extension\Extension instead. It may change without further notice. You should not use it from "phpbb\di\extension\core".
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "phpbb\di\extension\core" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\DependencyInjection\Extension\Extension::getConfiguration()" might add "?ConfigurationInterface" as a native return type declaration in the future. Do the same in child class "phpbb\di\extension\core" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: The "Symfony\Component\HttpKernel\DependencyInjection\Extension" class is considered internal since Symfony 7.1, to be deprecated in 8.1; use Symfony\Component\DependencyInjection\Extension\Extension instead. It may change without further notice. You should not use it from "phpbb\di\extension\tables".
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "phpbb\di\extension\tables" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: The "Symfony\Component\HttpKernel\DependencyInjection\Extension" class is considered internal since Symfony 7.1, to be deprecated in 8.1; use Symfony\Component\DependencyInjection\Extension\Extension instead. It may change without further notice. You should not use it from "phpbb\di\extension\config".
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "phpbb\di\extension\config" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "phpbb\console\exception_subscriber" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "phpbb\cron\event\cron_runner_listener" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "phpbb\event\kernel_exception_subscriber" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "phpbb\event\kernel_terminate_subscriber" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "phpbb\config\config" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: The "Symfony\Component\HttpKernel\DependencyInjection\Extension" class is considered internal since Symfony 7.1, to be deprecated in 8.1; use Symfony\Component\DependencyInjection\Extension\Extension instead. It may change without further notice. You should not use it from "phpbb\extension\di\extension_base".
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "phpbb\extension\di\extension_base" now to avoid errors or add an explicit @return annotation to suppress this message.
      [28-Feb-2026 00:17:24 UTC] 2026-02-28T00:17:24+00:00 [info] User Deprecated: Method "Symfony\Component\DependencyInjection\Extension\Extension::getConfiguration()" might add "?ConfigurationInterface" as a native return type declaration in the future. Do the same in child class "phpbb\extension\di\extension_base" now to avoid errors or add an explicit @return annotation to suppress this message.

            Unassigned Unassigned
            MattF Matt Friedman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: