Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fixing_type_getter_bug' into fix…
Browse files Browse the repository at this point in the history
…ing_type_getter_bug
  • Loading branch information
shcherbanich committed Oct 19, 2023
2 parents b5fcaca + ea46147 commit 6a07440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LanguageHandler/Php/Parser/Entity/MethodEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ private function isArrayAnnotationType(string $annotationType): bool
* @var Param[] $params
*/
$params = $docBlock->getTagsByName('param');
$typesFromDoc = $this->parseAnnotationParams($params);
$typesFromDoc = self::parseAnnotationParams($params);
try {
foreach ($this->getReflection()->getParameters() as $param) {
$type = '';
Expand All @@ -382,7 +382,7 @@ private function isArrayAnnotationType(string $annotationType): bool
}
$type = $type ?: 'mixed';
$expectedType = $type;
if ($type == 'array' && $this->isArrayAnnotationType($annotationType)) {
if ($type === 'array' && $this->isArrayAnnotationType($annotationType)) {
$expectedType = $annotationType;
}

Expand Down

0 comments on commit 6a07440

Please sign in to comment.