mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Apply tidy to SKIPIF and CLEAN section as well
This commit is contained in:
parent
0582c40907
commit
bfceb710be
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ function transformTestCode(string $code, callable $transformer): string {
|
|||
}
|
||||
|
||||
return preg_replace_callback(
|
||||
'/(--FILE--)(.+?)(--[A-Z_]+--)/s',
|
||||
'/(--(?:FILE|SKIPIF|CLEAN)--)(.+?)(--[A-Z_]+--)/s',
|
||||
function(array $matches) use($transformer) {
|
||||
return $matches[1] . $transformer($matches[2]) . $matches[3];
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue