When formatting a PHP file with a shebang, the formatted moves the opening PHP tag to the same line as the shebang.
Example:
#!/usr/bin/env php
<?php
echo "Hello, world!\n";
What's happening:
#!/usr/bin/env php <?php
echo "Hello, world!\n";
Expected:
#!/usr/bin/env php
<?php
echo "Hello, world!\n";
VSCode:
Version: 1.96.4 (Universal)
Commit: cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
Date: 2025-01-16T00:16:19.038Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0
Extension: 1.55.16685