Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 14b7352

Browse files
typehints in callbacks
1 parent ff133a2 commit 14b7352

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
@@ -3548,7 +3548,7 @@ function (Name $item) {
35483548
$code .= generateCodeWithConditions(
35493549
$this->constInfos,
35503550
'',
3551-
static fn ( $const ) => $const->getDeclaration($allConstInfos)
3551+
static fn (ConstInfo $const): string => $const->getDeclaration($allConstInfos)
35523552
);
35533553

35543554
foreach ($this->enumCaseInfos as $enumCase) {
@@ -5184,7 +5184,7 @@ static function (FuncInfo $funcInfo) use ($fileInfo, &$generatedFunctionDeclarat
51845184
$code .= generateCodeWithConditions(
51855185
$fileInfo->constInfos,
51865186
'',
5187-
static fn ( $constInfo ) => $constInfo->getDeclaration($allConstInfos)
5187+
static fn (ConstInfo $constInfo): string => $constInfo->getDeclaration($allConstInfos)
51885188
);
51895189

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /