Skip to content

Commit 9625eb1

Browse files
committed
gen_stub: Fix handling of falsy preprocessor conditions
1 parent c893591 commit 9625eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5111,7 +5111,7 @@ function generateCodeWithConditions(
51115111
continue;
51125112
}
51135113

5114-
if ($info->cond && $info->cond !== $parentCond) {
5114+
if ($info->cond !== null && $info->cond !== $parentCond) {
51155115
if ($openCondition !== null
51165116
&& $info->cond !== $openCondition
51175117
) {

0 commit comments

Comments
 (0)