diff --git a/src/Service/CodeValidator/PhpValidator.php b/src/Service/CodeValidator/PhpValidator.php index 2855969..f0a2bc6 100644 --- a/src/Service/CodeValidator/PhpValidator.php +++ b/src/Service/CodeValidator/PhpValidator.php @@ -47,7 +47,7 @@ private function getContents(CodeNode $node, string $language): string } // Allow us to use "..." as a placeholder - $contents = str_replace(['...,', '...)', '...;'], ['null,', 'null)', 'null;'], $contents); + $contents = str_replace(['...,', '...)', '...;', '...]'], ['null,', 'null)', 'null;', 'null]'], $contents); $lines = explode("\n", $contents); if (!str_contains($lines[0] ?? '', '