Skip to content

Commit 1c4fc84

Browse files
Add typehints back
1 parent b8cb368 commit 1c4fc84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/gen_stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3551,7 +3551,7 @@ function (Name $item) {
35513551
$code .= generateCodeWithConditions(
35523552
$this->constInfos,
35533553
'',
3554-
static fn ( $const ) => $const->getDeclaration($allConstInfos)
3554+
static fn (ConstInfo $const): string => $const->getDeclaration($allConstInfos)
35553555
);
35563556

35573557
foreach ($this->enumCaseInfos as $enumCase) {
@@ -5189,7 +5189,7 @@ static function (FuncInfo $funcInfo) use ($fileInfo, &$generatedFunctionDeclarat
51895189
$code .= generateCodeWithConditions(
51905190
$fileInfo->constInfos,
51915191
'',
5192-
static fn ( $constInfo ) => $constInfo->getDeclaration($allConstInfos)
5192+
static fn (ConstInfo $constInfo): string => $constInfo->getDeclaration($allConstInfos)
51935193
);
51945194

51955195
if ($attributeInitializationCode !== "" && $fileInfo->constInfos) {

0 commit comments

Comments
 (0)