Skip to content

Commit

Permalink
minor #3840 Suppress native return type deprecation msg (PhilETaylor)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Suppress native return type deprecation msg

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

Commits
-------

72d6f20 suppress native return type deprecation msg
  • Loading branch information
fabpot committed May 6, 2023
2 parents 3fd3645 + 72d6f20 commit 833e51e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

class MissingExtensionSuggestorPass implements CompilerPassInterface
{
/** @return void */
public function process(ContainerBuilder $container)
{
if ($container->getParameter('kernel.debug')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
class TwigExtraExtension extends Extension
{
/** @return void */
public function load(array $configs, ContainerBuilder $container)
{
$loader = new PhpFileLoader($container, new FileLocator(\dirname(__DIR__).'/Resources/config'));
Expand Down

0 comments on commit 833e51e

Please sign in to comment.