diff --git a/UPGRADE-3.0.md b/UPGRADE-3.0.md index 9252af3dac..2708da70db 100644 --- a/UPGRADE-3.0.md +++ b/UPGRADE-3.0.md @@ -88,6 +88,10 @@ UPGRADE FROM 2.x to 3.0 $table->render(); ``` +* Parameters of `renderException()` method of the + `Symfony\Component\Console\Application` are type hinted. + You must add the type hint to your implementations. + ### DependencyInjection * The methods `Definition::setFactoryClass()`, diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index d2d2f6f8af..1866e7c686 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -666,7 +666,7 @@ class Application * @param \Exception $e An exception instance * @param OutputInterface $output An OutputInterface instance */ - public function renderException($e, $output) + public function renderException(\Exception $e, OutputInterface $output) { do { $title = sprintf(' [%s] ', get_class($e));