@@ -54,7 +54,7 @@ public function getDeclarationLineFromNode($node): string
54
54
{
55
55
// If node is part of a declaration list, build a declaration line that discludes other elements in the list
56
56
// - [PropertyDeclaration] // public $a, [$b = 3], $c; => public $b = 3;
57
- // - [ConstDeclaration | ClassConstDeclaration] // "const A = 3, [B = 4];" => "const B = 4;"
57
+ // - [ConstDeclaration| ClassConstDeclaration] // "const A = 3, [B = 4];" => "const B = 4;"
58
58
if (
59
59
($ declaration = ParserHelpers \tryGetPropertyDeclaration ($ node )) && ($ elements = $ declaration ->propertyElements ) ||
60
60
($ declaration = ParserHelpers \tryGetConstOrClassConstDeclaration ($ node )) && ($ elements = $ declaration ->constElements )
@@ -131,7 +131,7 @@ public function getDocumentationFromNode($node)
131
131
* Gets Doc Block with resolved names for a Node
132
132
*
133
133
* @param Node $node
134
- * @return DocBlock | null
134
+ * @return DocBlock| null
135
135
*/
136
136
private function getDocBlock (Node $ node )
137
137
{
@@ -482,8 +482,8 @@ private static function getContainingClassFqn(Node $node)
482
482
/**
483
483
* Returns the assignment or parameter node where a variable was defined
484
484
*
485
- * @param Node\Expression\Variable | Node\Expression\ClosureUse $var The variable access
486
- * @return Node\Expression\Assign | Node\Expression\AssignOp|Node\Param | Node\Expression\ClosureUse|null
485
+ * @param Node\Expression\Variable| Node\Expression\ClosureUse $var The variable access
486
+ * @return Node\Expression\Assign| Node\Expression\AssignOp|Node\Param| Node\Expression\ClosureUse|null
487
487
*/
488
488
public function resolveVariableToNode ($ var )
489
489
{
@@ -894,7 +894,7 @@ public function resolveExpressionNodeToType($expr)
894
894
* Takes any class name node (from a static method call, or new node) and returns a Type object
895
895
* Resolves keywords like self, static and parent
896
896
*
897
- * @param Node | PhpParser\Token $class
897
+ * @param Node| PhpParser\Token $class
898
898
* @return Type
899
899
*/
900
900
public function resolveClassNameToType ($ class ): Type
@@ -1191,9 +1191,9 @@ public static function getDefinedFqn($node)
1191
1191
}
1192
1192
1193
1193
/**
1194
- * @param DocBlock | null $docBlock
1195
- * @param string | null $variableName
1196
- * @return DocBlock\Tags\Param | null
1194
+ * @param DocBlock| null $docBlock
1195
+ * @param string| null $variableName
1196
+ * @return DocBlock\Tags\Param| null
1197
1197
*/
1198
1198
private function tryGetDocBlockTagForParameter ($ docBlock , $ variableName )
1199
1199
{
0 commit comments