Commit ea3780f9 authored by Joas Schilling's avatar Joas Schilling
Browse files

Replace exception with standard exception

parent e1f3abf7
......@@ -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--;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment