Skip to content

Commit 2b65114

Browse files
committed
Fix symfony 6.3 return type deprecations
1 parent b7ebb1f commit 2b65114

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

src/DependencyInjection/Compiler/HashGeneratorPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class HashGeneratorPass implements CompilerPassInterface
2626
/**
2727
* {@inheritdoc}
2828
*/
29-
public function process(ContainerBuilder $container)
29+
public function process(ContainerBuilder $container): void
3030
{
3131
if (!$container->has('fos_http_cache.user_context.hash_generator')) {
3232
return;

src/DependencyInjection/Compiler/LoggerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class LoggerPass implements CompilerPassInterface
2222
/**
2323
* {@inheritdoc}
2424
*/
25-
public function process(ContainerBuilder $container)
25+
public function process(ContainerBuilder $container): void
2626
{
2727
if (!$container->has('logger') || !$container->has('fos_http_cache.event_listener.log')) {
2828
return;

src/DependencyInjection/Compiler/SessionListenerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SessionListenerPass implements CompilerPassInterface
2525
/**
2626
* {@inheritdoc}
2727
*/
28-
public function process(ContainerBuilder $container)
28+
public function process(ContainerBuilder $container): void
2929
{
3030
if ($container->has('session_listener')) {
3131
return;

src/DependencyInjection/Compiler/TagListenerPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TagListenerPass implements CompilerPassInterface
2323
/**
2424
* {@inheritdoc}
2525
*/
26-
public function process(ContainerBuilder $container)
26+
public function process(ContainerBuilder $container): void
2727
{
2828
if (true === $container->getParameter('fos_http_cache.compiler_pass.tag_annotations')
2929
&& !$this->hasControllerListener($container)
@@ -37,7 +37,7 @@ public function process(ContainerBuilder $container)
3737
}
3838
}
3939

40-
private function hasControllerListener(ContainerBuilder $container)
40+
private function hasControllerListener(ContainerBuilder $container): bool
4141
{
4242
return $container->has('sensio_framework_extra.controller.listener') ||
4343
$container->has(ControllerListener::class);

src/DependencyInjection/FOSHttpCacheExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getConfiguration(array $config, ContainerBuilder $container): Co
4747
/**
4848
* {@inheritdoc}
4949
*/
50-
public function load(array $configs, ContainerBuilder $container)
50+
public function load(array $configs, ContainerBuilder $container): void
5151
{
5252
$configuration = $this->getConfiguration($configs, $container);
5353
$config = $this->processConfiguration($configuration, $configs);

src/FOSHttpCacheBundle.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class FOSHttpCacheBundle extends Bundle
2323
{
2424
/**
2525
* {@inheritdoc}
26+
*
27+
* @return void
2628
*/
2729
public function build(ContainerBuilder $container)
2830
{

0 commit comments

Comments
 (0)