Skip to content

Commit fd137b6

Browse files
committed
No strict types and added return types
1 parent ac8f0fd commit fd137b6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Translator/src/DependencyInjection/TranslatorCompilerPass.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
namespace Symfony\UX\Translator\DependencyInjection;
64

75
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
@@ -10,7 +8,7 @@
108

119
class TranslatorCompilerPass implements CompilerPassInterface
1210
{
13-
public function process(ContainerBuilder $container)
11+
public function process(ContainerBuilder $container): void
1412
{
1513
if (!$this->hasValidTranslator($container)) {
1614
$container->removeDefinition('ux.translator.cache_warmer.translations_cache_warmer');

src/Translator/src/UxTranslatorBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getPath(): string
2929
return \dirname(__DIR__);
3030
}
3131

32-
public function build(ContainerBuilder $container)
32+
public function build(ContainerBuilder $container): void
3333
{
3434
$container->addCompilerPass(new TranslatorCompilerPass());
3535
}

0 commit comments

Comments
 (0)