1
0
Fork 0

Fix incorrect strip of non-php blocks in the file

pull/8334/head
zakonnic 2019-09-20 12:58:09 +03:00
parent a066dd9e00
commit ec96e5de64
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class ClassMapGenerator
}
}
// strip non-php blocks in the file
$contents = preg_replace('{\?>.+<\?}s', '?><?', $contents);
$contents = preg_replace('{\?>.+?<\?}s', '?><?', $contents);
// strip trailing non-php code if needed
$pos = strrpos($contents, '?>');
if (false !== $pos && false === strpos(substr($contents, $pos), '<?')) {