Skip to content

Commit 0579a55

Browse files
authored
Merge branch 'magento-commerce:develop' into add-enum
2 parents e24d682 + 3b85c72 commit 0579a55

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "magento/magento-semver",
33
"description": "Magento Semantic Version Checker",
4-
"version": "13.0.0-beta1",
4+
"version": "13.0.0-beta2",
55
"license": [
66
"OSL-3.0",
77
"AFL-3.0"

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Analyzer/ClassMethodAnalyzer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,11 @@ private function getDocReturnDeclaration(ClassMethod $method)
459459
($parsedComment = $method->getAttribute('docCommentParsed'))
460460
&& isset($parsedComment['return'])
461461
) {
462-
$result = implode('|', $parsedComment['return']);
462+
if ($parsedComment['return'][0] instanceof NullableType) {
463+
$result = '?' . $parsedComment['return'][0]->type;
464+
} else {
465+
$result = implode('|', $parsedComment['return']);
466+
}
463467

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

0 commit comments

Comments
 (0)