mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-04-23 07:28:36 +02:00
Remove useless cast (string) and @var doc
This commit is contained in:
parent
7d3039c378
commit
d4fce83c2c
@ -8,7 +8,6 @@ use PhpParser\NodeAbstract;
|
||||
class MatchArm extends NodeAbstract {
|
||||
/** @var null|list<Node\Expr> */
|
||||
public ?array $conds;
|
||||
/** @var Node\Expr */
|
||||
public Expr $body;
|
||||
|
||||
/**
|
||||
|
@ -145,7 +145,7 @@ class NodeDumper {
|
||||
} elseif ($node instanceof Comment) {
|
||||
$this->res .= \str_replace("\n", $this->nl, $node->getReformattedText());
|
||||
} elseif (\is_string($node)) {
|
||||
$this->res .= \str_replace("\n", $this->nl, (string)$node);
|
||||
$this->res .= \str_replace("\n", $this->nl, $node);
|
||||
} elseif (\is_int($node) || \is_float($node)) {
|
||||
$this->res .= $node;
|
||||
} elseif (null === $node) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user