summaryrefslogtreecommitdiffstats
path: root/tools/TestGenerator.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/TestGenerator.php')
-rw-r--r--tools/TestGenerator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/TestGenerator.php b/tools/TestGenerator.php
index 6867fed..5f59f01 100644
--- a/tools/TestGenerator.php
+++ b/tools/TestGenerator.php
@@ -109,7 +109,7 @@ class TestGenerator
public static function build($type, $input, $output, $debug = null)
{
// Support query types: `lexer` / `parser`.
- if (! in_array($type, ['lexer', 'parser'])) {
+ if (! in_array($type, array('lexer', 'parser'))) {
throw new \Exception('Unknown test type (expected `lexer` or `parser`).');
}