Replace exception with standard exception

This commit is contained in:
Joas Schilling 2014-11-26 12:42:43 +01:00
parent e1f3abf7a5
commit ea3780f911
1 changed files with 1 additions and 4 deletions

View File

@ -21,9 +21,6 @@
namespace OC;
class SyntaxException extends \Exception {
}
class ArrayParser {
const TYPE_NUM = 1;
const TYPE_BOOL = 2;
@ -209,7 +206,7 @@ class ArrayParser {
$bracketDepth++;
} elseif ($char === ')') {
if ($bracketDepth <= 0) {
throw new SyntaxException;
throw new UnexpectedValueException();
} else {
$bracketDepth--;
}