Skip to content

Commit

Permalink
Merge branch 'magento-commerce:develop' into add-enum
Browse files Browse the repository at this point in the history
  • Loading branch information
andimov authored Nov 21, 2023
2 parents e24d682 + 3b85c72 commit 0579a55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "magento/magento-semver",
"description": "Magento Semantic Version Checker",
"version": "13.0.0-beta1",
"version": "13.0.0-beta2",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/Analyzer/ClassMethodAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,11 @@ private function getDocReturnDeclaration(ClassMethod $method)
($parsedComment = $method->getAttribute('docCommentParsed'))
&& isset($parsedComment['return'])
) {
$result = implode('|', $parsedComment['return']);
if ($parsedComment['return'][0] instanceof NullableType) {
$result = '?' . $parsedComment['return'][0]->type;
} else {
$result = implode('|', $parsedComment['return']);
}

return $result;
} elseif ($this->dependencyGraph !== null) {
Expand Down

0 comments on commit 0579a55

Please sign in to comment.