We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9955a24 + 8cb0227 commit a9484a3Copy full SHA for a9484a3
src/Formatter/Views/FormatPslTags.php
@@ -34,7 +34,7 @@ protected function psl_tags()
34
{
35
// Regular expression to match any PHP opening and closing tags
36
$formattedContents = preg_replace_callback(
37
- '/<' . '\?' . '\s+([^?]*)\?' . '>/s',
+ '/<' . '\?' . '\s+([\s\S]*?)\s*\?' . '>/s',
38
function ($matches) {
39
// Trim the content inside the PHP tags, removing trailing semicolons
40
$val = trim($matches[1]);
0 commit comments