Skip to content
Snippets Groups Projects
Commit ea3780f9 authored by Joas Schilling's avatar Joas Schilling
Browse files

Replace exception with standard exception

parent e1f3abf7
No related branches found
No related tags found
No related merge requests found
......@@ -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--;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment