Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #18 from jrbasso/fix_exception_name

Fixed exception classname
  • Loading branch information...
commit 8f33675f390a41c33e3ea43ae15a55d55c2f2058 2 parents c8ac067 + 2d81e5f
@gsherwood gsherwood authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 CodeSniffer/Standards/AbstractScopeSniff.php
View
8 CodeSniffer/Standards/AbstractScopeSniff.php
@@ -95,7 +95,7 @@
* processTokenOutideScope method.
*
* @see PHP_CodeSniffer.getValidScopeTokeners()
- * @throws PHP_CodeSniffer_Test_Exception If the specified tokens array is empty.
+ * @throws PHP_CodeSniffer_Exception If the specified tokens array is empty.
*/
public function __construct(
array $scopeTokens,
@@ -104,19 +104,19 @@ public function __construct(
) {
if (empty($scopeTokens) === true) {
$error = 'The scope tokens list cannot be empty';
- throw new PHP_CodeSniffer_Test_Exception($error);
+ throw new PHP_CodeSniffer_Exception($error);
}
if (empty($tokens) === true) {
$error = 'The tokens list cannot be empty';
- throw new PHP_CodeSniffer_Test_Exception($error);
+ throw new PHP_CodeSniffer_Exception($error);
}
$invalidScopeTokens = array_intersect($scopeTokens, $tokens);
if (empty($invalidScopeTokens) === false) {
$invalid = implode(', ', $invalidScopeTokens);
$error = "Scope tokens [$invalid] cant be in the tokens array";
- throw new PHP_CodeSniffer_Test_Exception($error);
+ throw new PHP_CodeSniffer_Exception($error);
}
$this->_listenOutside = $listenOutside;
Please sign in to comment.
Something went wrong with that request. Please try again.