schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
427 stars 291 forks source link

Add void return signatures to remove deprecation notices #580

Closed delboy1978uk closed 11 months ago

delboy1978uk commented 11 months ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License Apache2

Description

This PR gets rid of the following deprecation notices:

Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "JMS\TranslationBundle\DependencyInjection\JMSTranslationExtension" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "JMS\TranslationBundle\DependencyInjection\Compiler\IntegrationPass" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "JMS\TranslationBundle\DependencyInjection\Compiler\MountFileVisitorsPass" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "JMS\TranslationBundle\DependencyInjection\Compiler\MountExtractorsPass" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "JMS\TranslationBundle\DependencyInjection\Compiler\MountLoadersPass" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "JMS\TranslationBundle\DependencyInjection\Compiler\MountDumpersPass" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\Console\Command\Command::configure()" might add "void" as a native return type declaration in the future. Do the same in child class "JMS\TranslationBundle\Command\ExtractTranslationCommand" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\Console\Command\Command::configure()" might add "void" as a native return type declaration in the future. Do the same in child class "JMS\TranslationBundle\Command\ResourcesListCommand" now to avoid errors or add an explicit @return annotation to suppress this message.

User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "JMS\TranslationBundle\JMSTranslationBundle" now to avoid errors or add an explicit @return annotation to suppress this message. php

goetas commented 11 months ago

looks good, thanks