Replace exception with standard exception

remotes/origin/fix-10825
Joas Schilling 12 years ago
parent e1f3abf7a5
commit ea3780f911
  1. 5
      lib/private/arrayparser.php

@ -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--;
}

Loading…
Cancel
Save