[Console] Added type hint
This commit is contained in:
parent
fffcc24326
commit
e98c53748e
|
@ -88,6 +88,10 @@ UPGRADE FROM 2.x to 3.0
|
||||||
$table->render();
|
$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
|
### DependencyInjection
|
||||||
|
|
||||||
* The methods `Definition::setFactoryClass()`,
|
* The methods `Definition::setFactoryClass()`,
|
||||||
|
|
|
@ -666,7 +666,7 @@ class Application
|
||||||
* @param \Exception $e An exception instance
|
* @param \Exception $e An exception instance
|
||||||
* @param OutputInterface $output An OutputInterface instance
|
* @param OutputInterface $output An OutputInterface instance
|
||||||
*/
|
*/
|
||||||
public function renderException($e, $output)
|
public function renderException(\Exception $e, OutputInterface $output)
|
||||||
{
|
{
|
||||||
do {
|
do {
|
||||||
$title = sprintf(' [%s] ', get_class($e));
|
$title = sprintf(' [%s] ', get_class($e));
|
||||||
|
|
Reference in New Issue