Skip to content

Commit 2490cb6

Browse files
DanielEScherzerkocsismate
authored andcommitted
gen_stub: remove FuncInfo::getFramelessDeclaration() parameter
Unused, only caller passes in the same FuncInfo object that the method is called on.
1 parent 2af71d7 commit 2490cb6

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
@@ -1308,7 +1308,7 @@ public function getDeclaration(): ?string
13081308
return $name->getDeclaration();
13091309
}
13101310

1311-
public function getFramelessDeclaration(FuncInfo $funcInfo): ?string {
1311+
public function getFramelessDeclaration(): ?string {
13121312
if (empty($this->framelessFunctionInfos)) {
13131313
return null;
13141314
}
@@ -5169,7 +5169,7 @@ static function (FuncInfo $funcInfo) use (&$generatedFuncInfos, $fileInfo) {
51695169
$framelessFunctionCode = generateCodeWithConditions(
51705170
$fileInfo->getAllFuncInfos(), "\n",
51715171
static function (FuncInfo $funcInfo) {
5172-
return $funcInfo->getFramelessDeclaration($funcInfo);
5172+
return $funcInfo->getFramelessDeclaration();
51735173
}
51745174
);
51755175

0 commit comments

Comments
 (0)