8000 [Console] Added type hint · symfony/symfony@e98c537 · GitHub
[go: up one dir, main page]

Skip to content

Commit e98c537

Browse files
francisbessetfabpot
authored andcommitted
[Console] Added type hint
1 parent fffcc24 commit e98c537

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

UPGRADE-3.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ UPGRADE FROM 2.x to 3.0
8888
$table->render();
8989
```
9090

91+
* Parameters of `renderException()` method of the
92+
`Symfony\Component\Console\Application` are type hinted.
93+
You must add the type hint to your implementations.
94+
9195
### DependencyInjection
9296

9397
* The methods `Definition::setFactoryClass()`,

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ public function asXml($namespace = null, $asDom = false)
666666
* @param \Exception $e An exception instance
667667
* @param OutputInterface $output An OutputInterface instance
668668
*/
669-
public function renderException($e, $output)
669+
public function renderException(\Exception $e, OutputInterface $output)
670670
{
671671
do {
672672
$title = sprintf(' [%s] ', get_class($e));

0 commit comments

Comments
 (0)
0