Skip to content

Commit

Permalink
Add return type to TwigFormPass::process() (#518)
Browse files Browse the repository at this point in the history
This fixes the warning:

Method
"Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()"
might add "void" as a native return type declaration in the future.
Do the same in implementation
"FM\ElfinderBundle\DependencyInjection\Compiler\TwigFormPass"
now to avoid errors or add an explicit @return annotation to suppress this message.
  • Loading branch information
jontjs authored Nov 18, 2023
1 parent 19a7578 commit 71d0268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/Compiler/TwigFormPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class TwigFormPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasParameter('twig.form.resources')) {
return;
Expand Down

0 comments on commit 71d0268

Please sign in to comment.