Skip to content

Commit 418b933

Browse files
DanielEScherzerkocsismate
authored andcommitted
gen_stub: make some methods only used within their class private
* `FuncInfo::hasParamWithUnknownDefaultValue()` * `FuncInfo::getFramelessFunctionInfosName()` * `ClassInfo::getClassSynopsisReference()`
1 parent dd72c43 commit 418b933

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/gen_stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ public function getModifierNames(): array
12641264
return $result;
12651265
}
12661266

1267-
public function hasParamWithUnknownDefaultValue(): bool
1267+
private function hasParamWithUnknownDefaultValue(): bool
12681268
{
12691269
foreach ($this->args as $arg) {
12701270
if ($arg->defaultValue && !$arg->hasProperDefaultValue()) {
@@ -1344,7 +1344,7 @@ public function getFramelessDeclaration(FuncInfo $funcInfo): ?string {
13441344
return $code;
13451345
}
13461346

1347-
public function getFramelessFunctionInfosName(): string {
1347+
private function getFramelessFunctionInfosName(): string {
13481348
return $this->name->getFramelessFunctionInfosName();
13491349
}
13501350

@@ -3822,7 +3822,7 @@ public static function getClassSynopsisFilename(Name $name): string {
38223822
return strtolower(str_replace("_", "-", implode('-', $name->getParts())));
38233823
}
38243824

3825-
public static function getClassSynopsisReference(Name $name): string {
3825+
private static function getClassSynopsisReference(Name $name): string {
38263826
return "class." . self::getClassSynopsisFilename($name);
38273827
}
38283828

0 commit comments

Comments
 (0)