Skip to content

Commit af318ff

Browse files
Leverage trigger_deprecation() from symfony/deprecation-contracts
1 parent b4c519b commit af318ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function load(array $configs, ContainerBuilder $container)
214214
}
215215

216216
if (!\extension_loaded('intl') && !\defined('PHPUNIT_COMPOSER_INSTALL')) {
217-
@trigger_error('Please install the "intl" PHP extension for best performance.', E_USER_DEPRECATED);
217+
trigger_deprecation('', '', 'Please install the "intl" PHP extension for best performance.');
218218
}
219219
}
220220

@@ -857,7 +857,7 @@ private function registerRouterConfiguration(array $config, ContainerBuilder $co
857857
$loader->load('routing.xml');
858858

859859
if (null === $config['utf8']) {
860-
@trigger_error('Not setting the "framework.router.utf8" configuration option is deprecated since Symfony 5.1, it will default to "true" in Symfony 6.0.', E_USER_DEPRECATED);
860+
trigger_deprecation('symfony/framework-bundle', '5.1', 'Not setting the "framework.router.utf8" configuration option is deprecated, it will default to "true" in version 6.0.');
861861
}
862862

863863
if ($config['utf8']) {

Kernel/MicroKernelTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function loadRoutes(LoaderInterface $loader)
174174
}
175175
}
176176

177-
@trigger_error(sprintf('Using type "%s" for argument 1 of method "%s:configureRoutes()" is deprecated since Symfony 5.1, use "%s" instead.', RouteCollectionBuilder::class, self::class, RoutingConfigurator::class), E_USER_DEPRECATED);
177+
trigger_deprecation('symfony/framework-bundle', '5.1', 'Using type "%s" for argument 1 of method "%s:configureRoutes()" is deprecated, use "%s" instead.', RouteCollectionBuilder::class, self::class, RoutingConfigurator::class);
178178

179179
$routes = new RouteCollectionBuilder($loader);
180180
$this->configureRoutes($routes);

0 commit comments

Comments
 (0)