mirror of
https://github.com/symfony/web-profiler-bundle.git
synced 2026-03-24 00:02:13 +01:00
[Bridges][Bundles] Convert to native return types
This commit is contained in:
committed by
Nicolas Grekas
parent
b3fcb4dfd6
commit
3bfcd873a7
@@ -37,10 +37,8 @@ class WebProfilerExtension extends Extension
|
||||
* Loads the web profiler configuration.
|
||||
*
|
||||
* @param array $configs An array of configuration settings
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
public function load(array $configs, ContainerBuilder $container): void
|
||||
{
|
||||
$configuration = $this->getConfiguration($configs, $container);
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
|
||||
@@ -18,10 +18,7 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
*/
|
||||
class WebProfilerBundle extends Bundle
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
public function boot(): void
|
||||
{
|
||||
if ('prod' === $this->container->getParameter('kernel.environment')) {
|
||||
@trigger_error('Using WebProfilerBundle in production is not supported and puts your project at risk, disable it.', \E_USER_WARNING);
|
||||
|
||||
Reference in New Issue
Block a user