Param: fix phpdoc with reference hint (code style fixes)

This commit is contained in:
Lars Moelleken
2020-08-18 09:48:21 +02:00
parent 443d86e18e
commit b5f863d3da
+2 -3
View File
@@ -83,8 +83,7 @@ final class Param extends TagWithType implements Factory\StaticMethod
} }
// if the next item starts with a $ or ...$ or &$ or &...$ it must be the variable name // if the next item starts with a $ or ...$ or &$ or &...$ it must be the variable name
if ( if (isset($parts[0])
isset($parts[0])
&& &&
( (
strpos($parts[0], '$') === 0 strpos($parts[0], '$') === 0
@@ -103,7 +102,7 @@ final class Param extends TagWithType implements Factory\StaticMethod
if (strpos($variableName, '$') === 0) { if (strpos($variableName, '$') === 0) {
$variableName = substr($variableName, 1); $variableName = substr($variableName, 1);
} elseif(strpos($variableName, '&$') === 0) { } elseif (strpos($variableName, '&$') === 0) {
$isReference = true; $isReference = true;
$variableName = substr($variableName, 2); $variableName = substr($variableName, 2);
} elseif (strpos($variableName, '...$') === 0) { } elseif (strpos($variableName, '...$') === 0) {