Skip to content

Commit 8e2967e

Browse files
committed
Rename method
1 parent d52bb84 commit 8e2967e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/PhpDoc/Tag/MethodTag.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ class MethodTag
1010

1111
/**
1212
* @param array<string, MethodTagParameter> $parameters
13-
* @param array<string, TemplateTag> $templates
13+
* @param array<string, TemplateTag> $templateTags
1414
*/
1515
public function __construct(
1616
private Type $returnType,
1717
private bool $isStatic,
1818
private array $parameters,
19-
private array $templates = [],
19+
private array $templateTags = [],
2020
)
2121
{
2222
}
@@ -42,9 +42,9 @@ public function getParameters(): array
4242
/**
4343
* @return array<string, TemplateTag>
4444
*/
45-
public function getTemplates(): array
45+
public function getTemplateTags(): array
4646
{
47-
return $this->templates;
47+
return $this->templateTags;
4848
}
4949

5050
}

src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function findClassReflectionWithMethod(
6767

6868
$templateTypeMap = new TemplateTypeMap(array_map(
6969
static fn (TemplateTag $tag): Type => TemplateTypeFactory::fromTemplateTag($templateTypeScope, $tag),
70-
$methodTags[$methodName]->getTemplates()
70+
$methodTags[$methodName]->getTemplateTags()
7171
));
7272

7373
$isStatic = $methodTags[$methodName]->isStatic();

0 commit comments

Comments
 (0)