Skip to content

Commit

Permalink
Remove useless cast (string) and @var doc
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored and nikic committed Jan 16, 2025
1 parent 7d3039c commit d4fce83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/PhpParser/Node/MatchArm.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
class MatchArm extends NodeAbstract {
/** @var null|list<Node\Expr> */
public ?array $conds;
/** @var Node\Expr */
public Expr $body;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/PhpParser/NodeDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected function dumpRecursive($node, bool $indent = true): void {
} 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) {
Expand Down

0 comments on commit d4fce83

Please sign in to comment.