We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44f747 commit bfb8e45Copy full SHA for bfb8e45
src/Service/CodeValidator/PhpValidator.php
@@ -47,7 +47,7 @@ private function getContents(CodeNode $node, string $language): string
47
}
48
49
// Allow us to use "..." as a placeholder
50
- $contents = str_replace(['...,', '...)', '...;'], ['null,', 'null)', 'null;'], $contents);
+ $contents = str_replace(['...,', '...)', '...;', '...]'], ['null,', 'null)', 'null;', 'null]'], $contents);
51
52
$lines = explode("\n", $contents);
53
if (!str_contains($lines[0] ?? '', '<?php') && !str_contains($lines[1] ?? '', '<?php') && !str_contains($lines[2] ?? '', '<?php')) {
0 commit comments