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:
Fabien Potencier 2014-12-21 11:54:23 +01:00
commit 1532b4e681
1 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,6 @@
namespace Symfony\Component\Console\Helper;
use Symfony\Component\Console\Output\OutputInterface;
use InvalidArgumentException;
/**
* Provides helpers to display table output.
@ -79,7 +78,7 @@ class TableHelper extends Helper
*
* @return TableHelper
*
* @throws InvalidArgumentException when the table layout is not known
* @throws \InvalidArgumentException when the table layout is not known
*/
public function setLayout($layout)
{
@ -111,8 +110,7 @@ class TableHelper extends Helper
break;
default:
throw new InvalidArgumentException(sprintf('Invalid table layout "%s".', $layout));
break;
throw new \InvalidArgumentException(sprintf('Invalid table layout "%s".', $layout));
};
return $this;