We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49b7420 commit 0e47b54Copy full SHA for 0e47b54
1 file changed
src/OutputFormatter.php
@@ -24,7 +24,7 @@
24
public function format(string $content, string $existingContent): string
25
{
26
preg_match('/^<\?php\s*\/\*[\s\S]*?\*\//', $existingContent, $matches);
27
- $existingHeader = $matches[0] ?? '';
+ $existingHeader = $matches[0] ?? '<?php';
28
29
$replacements = [
30
'/\n\n\t(public|private|\/\*\*)/m' => PHP_EOL . ' $1',
0 commit comments