Skip to content

Commit 97cd9fd

Browse files
DanielEScherzerkocsismate
authored andcommitted
gen_stub: combine identical condition blocks
1 parent 12c89aa commit 97cd9fd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

build/gen_stub.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,9 +1426,7 @@ public function getFunctionEntry(): string {
14261426

14271427
if (!$php84MinimumCompatibility) {
14281428
$code .= "#else\n";
1429-
}
14301429

1431-
if (!$php84MinimumCompatibility) {
14321430
$flags = array_slice($flagsByPhpVersions, 0, 4, true);
14331431
$template = "\tZEND_RAW_FENTRY($zendName, $name, $argInfoName, %s)\n";
14341432
$flagsCode = generateVersionDependentFlagCode(
@@ -1437,9 +1435,7 @@ public function getFunctionEntry(): string {
14371435
$this->minimumPhpVersionIdCompatibility
14381436
);
14391437
$code .= implode("", $flagsCode);
1440-
}
14411438

1442-
if (!$php84MinimumCompatibility) {
14431439
$code .= "#endif\n";
14441440
}
14451441
}

0 commit comments

Comments
 (0)