Skip to content

Commit d4fce83

Browse files
samsonasiknikic
authored andcommitted
Remove useless cast (string) and @var doc
1 parent 7d3039c commit d4fce83

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/PhpParser/Node/MatchArm.php

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
class MatchArm extends NodeAbstract {
99
/** @var null|list<Node\Expr> */
1010
public ?array $conds;
11-
/** @var Node\Expr */
1211
public Expr $body;
1312

1413
/**

lib/PhpParser/NodeDumper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected function dumpRecursive($node, bool $indent = true): void {
145145
} elseif ($node instanceof Comment) {
146146
$this->res .= \str_replace("\n", $this->nl, $node->getReformattedText());
147147
} elseif (\is_string($node)) {
148-
$this->res .= \str_replace("\n", $this->nl, (string)$node);
148+
$this->res .= \str_replace("\n", $this->nl, $node);
149149
} elseif (\is_int($node) || \is_float($node)) {
150150
$this->res .= $node;
151151
} elseif (null === $node) {

0 commit comments

Comments
 (0)