From b3d03a89a44b9d21907cf09b4aca031b33f065b6 Mon Sep 17 00:00:00 2001 From: Filipp Shcherbanich Date: Thu, 19 Oct 2023 18:11:50 +0000 Subject: [PATCH 1/2] Update src/LanguageHandler/Php/Parser/Entity/MethodEntity.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Seán McNamara --- src/LanguageHandler/Php/Parser/Entity/MethodEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php b/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php index 7eefdcda..4e9a3be0 100644 --- a/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php +++ b/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php @@ -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; } From ea46147fc7d0b7e4b85d98f7f82b017f3a9b16bd Mon Sep 17 00:00:00 2001 From: Filipp Shcherbanich Date: Thu, 19 Oct 2023 21:31:04 +0300 Subject: [PATCH 2/2] Update src/LanguageHandler/Php/Parser/Entity/MethodEntity.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Seán McNamara --- src/LanguageHandler/Php/Parser/Entity/MethodEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php b/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php index 4e9a3be0..79d3b19d 100644 --- a/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php +++ b/src/LanguageHandler/Php/Parser/Entity/MethodEntity.php @@ -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 = '';