Skip to content

Commit 96ff1b6

Browse files
committed
symfony/framework-bundle 4.2 can use PHP 7.1 features
1 parent 2cf2294 commit 96ff1b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

symfony/framework-bundle/4.2/src/Kernel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class Kernel extends BaseKernel
1313
{
1414
use MicroKernelTrait;
1515

16-
const CONFIG_EXTS = '.{php,xml,yaml,yml}';
16+
private const CONFIG_EXTS = '.{php,xml,yaml,yml}';
1717

18-
public function registerBundles()
18+
public function registerBundles(): iterable
1919
{
2020
$contents = require $this->getProjectDir().'/config/bundles.php';
2121
foreach ($contents as $class => $envs) {
@@ -25,7 +25,7 @@ public function registerBundles()
2525
}
2626
}
2727

28-
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
28+
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
2929
{
3030
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
3131
$container->setParameter('container.dumper.inline_class_loader', true);
@@ -37,7 +37,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
3737
$loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
3838
}
3939

40-
protected function configureRoutes(RouteCollectionBuilder $routes)
40+
protected function configureRoutes(RouteCollectionBuilder $routes): void
4141
{
4242
$confDir = $this->getProjectDir().'/config';
4343

0 commit comments

Comments
 (0)