@@ -16,7 +16,7 @@ abstract class Node implements \JsonSerializable {
1616 /** @var array[] Map from node class to array of child keys */
1717 private static $ childNames = [];
1818
19- /** @var Node | null */
19+ /** @var Node| null */
2020 public $ parent ;
2121
2222 public function getNodeKindName () : string {
@@ -187,7 +187,7 @@ public function getDescendantNodes(callable $shouldDescendIntoChildrenFn = null)
187187 /**
188188 * Gets generator containing all descendant Tokens.
189189 * @param callable|null $shouldDescendIntoChildrenFn
190- * @return \Generator | Token[]
190+ * @return \Generator| Token[]
191191 */
192192 public function getDescendantTokens (callable $ shouldDescendIntoChildrenFn = null ) {
193193 foreach ($ this ->getChildNodesAndTokens () as $ child ) {
@@ -205,7 +205,7 @@ public function getDescendantTokens(callable $shouldDescendIntoChildrenFn = null
205205 * Gets generator containing all child Nodes and Tokens (direct descendants).
206206 * Does not return null elements.
207207 *
208- * @return \Generator | Token[] | Node[]
208+ * @return \Generator| Token[]| Node[]
209209 */
210210 public function getChildNodesAndTokens () : \Generator {
211211 foreach ($ this ::CHILD_NAMES as $ name ) {
@@ -227,7 +227,7 @@ public function getChildNodesAndTokens() : \Generator {
227227
228228 /**
229229 * Gets generator containing all child Nodes (direct descendants)
230- * @return \Generator | Node[]
230+ * @return \Generator| Node[]
231231 */
232232 public function getChildNodes () : \Generator {
233233 foreach ($ this ::CHILD_NAMES as $ name ) {
@@ -425,7 +425,7 @@ private function containsPosition(int $pos): bool {
425425 * Returns last doc comment in leading comment / whitespace trivia,
426426 * and returns null if there is no preceding doc comment.
427427 *
428- * @return string | null
428+ * @return string| null
429429 */
430430 public function getDocCommentText () {
431431 $ leadingTriviaText = $ this ->getLeadingCommentAndWhitespaceText ();
@@ -446,7 +446,7 @@ public function __toString() {
446446 }
447447
448448 /**
449- * @return array | ResolvedName[][]
449+ * @return array| ResolvedName[][]
450450 * @throws \Exception
451451 */
452452 public function getImportTablesForCurrentScope () {
@@ -547,7 +547,7 @@ public function getImportTablesForCurrentScope() {
547547 /**
548548 * Gets corresponding NamespaceDefinition for Node. Returns null if in global namespace.
549549 *
550- * @return NamespaceDefinition | null
550+ * @return NamespaceDefinition| null
551551 */
552552 public function getNamespaceDefinition () {
553553 $ namespaceDefinition = $ this instanceof NamespaceDefinition
0 commit comments