[Console] Added type hint

This commit is contained in:
Francis Besset 2015-02-21 21:21:10 +01:00 committed by Fabien Potencier
parent fffcc24326
commit e98c53748e
2 changed files with 5 additions and 1 deletions

View File

@ -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()`,

View File

@ -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));