8000 minor #13058 [2.3] [Console] remove « use » statement for PHP built-i… · symfony/symfony@1532b4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1532b4e

Browse files
committed
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.
2 parents c9acca7 + cdc5c5b commit 1532b4e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Symfony/Component/Console/Helper/TableHelper.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Console\Helper;
1313

1414
use Symfony\Component\Console\Output\OutputInterface;
15-
use InvalidArgumentException;
1615

1716
/**
1817
* Provides helpers to display table output.
@@ -79,7 +78,7 @@ public function __construct()
7978
*
8079
* @return TableHelper
8180
*
82-
* @throws InvalidArgumentException when the table layout is not known
81+
* @throws \InvalidArgumentException when the table layout is not known
8382
*/
8483
public function setLayout($layout)
8584
{
@@ -111,8 +110,7 @@ public function setLayout($layout)
111110
break;
112111

113112
default:
114-
throw new InvalidArgumentException(sprintf('Invalid table layout "%s".', $layout));
115-
break;
113+
throw new \InvalidArgumentException(sprintf('Invalid table layout "%s".', $layout));
116114
};
117115

118116
return $this;

0 commit comments

Comments
 (0)
0