minor #13058 [2.3] [Console] remove « use » statement for PHP built-in exception classes. (hhamon)
This PR was merged into the 2.3 branch.
Discussion
----------
[2.3] [Console] remove « use » statement for PHP built-in exception classes.
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | ~
| License | MIT
| Doc PR | ~
Commits
-------
cdc5c5b
[Console] remove « use » statement for PHP built-in exception classes.
This commit is contained in:
commit
1532b4e681
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Component\Console\Helper;
|
namespace Symfony\Component\Console\Helper;
|
||||||
|
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use InvalidArgumentException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides helpers to display table output.
|
* Provides helpers to display table output.
|
||||||
@ -79,7 +78,7 @@ class TableHelper extends Helper
|
|||||||
*
|
*
|
||||||
* @return TableHelper
|
* @return TableHelper
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException when the table layout is not known
|
* @throws \InvalidArgumentException when the table layout is not known
|
||||||
*/
|
*/
|
||||||
public function setLayout($layout)
|
public function setLayout($layout)
|
||||||
{
|
{
|
||||||
@ -111,8 +110,7 @@ class TableHelper extends Helper
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new InvalidArgumentException(sprintf('Invalid table layout "%s".', $layout));
|
throw new \InvalidArgumentException(sprintf('Invalid table layout "%s".', $layout));
|
||||||
break;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Reference in New Issue
Block a user