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

Skip to content

Commit 459fa5e

Browse files
committed
[Console] Added type hint
1 parent bbd4a1e commit 459fa5e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

UPGRADE-2.7.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,10 @@ PropertyAccess
105105

106106
new UnexpectedTypeException($value, $path, $pathIndex);
107107
```
108+
109+
Console
110+
-------
111+
112+
* Parameters of `renderException()` method of the
113+
`Symfony\Component\Console\Application` are type hinted.
114+
You must add the type hint to your implementations.

src/Symfony/Component/Console/Application.php

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

0 commit comments

Comments
 (0)
0