Fix incorrect strip of non-php blocks in the file
parent
a066dd9e00
commit
ec96e5de64
|
@ -173,7 +173,7 @@ class ClassMapGenerator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// strip non-php blocks in the file
|
// strip non-php blocks in the file
|
||||||
$contents = preg_replace('{\?>.+<\?}s', '?><?', $contents);
|
$contents = preg_replace('{\?>.+?<\?}s', '?><?', $contents);
|
||||||
// strip trailing non-php code if needed
|
// strip trailing non-php code if needed
|
||||||
$pos = strrpos($contents, '?>');
|
$pos = strrpos($contents, '?>');
|
||||||
if (false !== $pos && false === strpos(substr($contents, $pos), '<?')) {
|
if (false !== $pos && false === strpos(substr($contents, $pos), '<?')) {
|
||||||
|
|
Loading…
Reference in New Issue