Skip to content

Commit 3c3ef6d

Browse files
committed
Use .= where possible
1 parent 1b767ac commit 3c3ef6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,10 +2069,10 @@ function run_test($php, $file, $env)
20692069
$start = $end = $length;
20702070
}
20712071
// quote a non re portion of the string
2072-
$temp = $temp . preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
2072+
$temp .= preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
20732073
// add the re unquoted.
20742074
if ($end > $start) {
2075-
$temp = $temp . '(' . substr($wanted_re, $start+2, $end - $start-2). ')';
2075+
$temp .= '(' . substr($wanted_re, $start+2, $end - $start-2). ')';
20762076
}
20772077
$startOffset = $end + 2;
20782078
}

0 commit comments

Comments
 (0)