Skip to content

Commit 5f9a0b5

Browse files
authored
gen_stub: Fix undefined variable warning (#18821)
> PHP Warning: Undefined variable $code in build/gen_stub.php on line 5322 Introduced in #18735.
1 parent 3399235 commit 5f9a0b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/gen_stub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5313,6 +5313,8 @@ function generateGlobalConstantAttributeInitialization(
53135313
$constInfos,
53145314
"",
53155315
static function (ConstInfo $constInfo) use ($allConstInfos, $phpVersionIdMinimumCompatibility) {
5316+
$code = "";
5317+
53165318
if ($constInfo->attributes === []) {
53175319
return null;
53185320
}

0 commit comments

Comments
 (0)