From f389575900724be92e56d5f16aacc484800fdf3e Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 30 Aug 2015 22:52:11 +0200 Subject: [PATCH] Revert "feature #13756 [3.0][Console] Added type hint (francisbesset)" This reverts commit ad1888b982be694e9ae2c4a6b8604a0df9d14098, reversing changes made to fffcc243262f5cb7532ac8bc88ba4ce4713ba989. --- UPGRADE-3.0.md | 4 ---- src/Symfony/Component/Console/Application.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/UPGRADE-3.0.md b/UPGRADE-3.0.md index 731582385a8cf..2c095e58eb748 100644 --- a/UPGRADE-3.0.md +++ b/UPGRADE-3.0.md @@ -88,10 +88,6 @@ 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 method `remove` was added to `Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface`. diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index bb99ebf38c143..f8c4bdf84edbf 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -616,7 +616,7 @@ public static function getAbbreviations($names) * @param \Exception $e An exception instance * @param OutputInterface $output An OutputInterface instance */ - public function renderException(\Exception $e, OutputInterface $output) + public function renderException($e, $output) { do { $title = sprintf(' [%s] ', get_class($e));