Skip to content

Commit 9edb3bb

Browse files
wouterjnicolas-grekas
authored andcommitted
[Bridges][Bundles] Convert to native return types
1 parent b76b10b commit 9edb3bb

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

DebugBundle.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
*/
2323
class DebugBundle extends Bundle
2424
{
25-
/**
26-
* @return void
27-
*/
28-
public function boot()
25+
public function boot(): void
2926
{
3027
if ($this->container->getParameter('kernel.debug')) {
3128
$container = $this->container;
@@ -52,20 +49,14 @@ public function boot()
5249
}
5350
}
5451

55-
/**
56-
* @return void
57-
*/
58-
public function build(ContainerBuilder $container)
52+
public function build(ContainerBuilder $container): void
5953
{
6054
parent::build($container);
6155

6256
$container->addCompilerPass(new DumpDataCollectorPass());
6357
}
6458

65-
/**
66-
* @return void
67-
*/
68-
public function registerCommands(Application $application)
59+
public function registerCommands(Application $application): void
6960
{
7061
// noop
7162
}

DependencyInjection/Compiler/DumpDataCollectorPass.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
*/
2323
class DumpDataCollectorPass implements CompilerPassInterface
2424
{
25-
/**
26-
* @return void
27-
*/
28-
public function process(ContainerBuilder $container)
25+
public function process(ContainerBuilder $container): void
2926
{
3027
if (!$container->hasDefinition('data_collector.dump')) {
3128
return;

DependencyInjection/DebugExtension.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,11 @@
2323
use Symfony\Component\VarDumper\Dumper\HtmlDumper;
2424

2525
/**
26-
* DebugExtension.
27-
*
2826
* @author Nicolas Grekas <[email protected]>
2927
*/
3028
class DebugExtension extends Extension
3129
{
32-
/**
33-
* @return void
34-
*/
35-
public function load(array $configs, ContainerBuilder $container)
30+
public function load(array $configs, ContainerBuilder $container): void
3631
{
3732
$configuration = new Configuration();
3833
$config = $this->processConfiguration($configuration, $configs);

0 commit comments

Comments
 (0)