Skip to content

Commit

Permalink
consistent usage
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed May 7, 2024
1 parent 9516ff2 commit e95e3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instrument/Transformer/SelfValueVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function enterNode(Node $node)
}
} elseif ($node instanceof ClassLike) {
if (! $node instanceof Trait_) {
$this->className = !empty($node->name) ? $node->name->toString() : null;
$this->className = !empty($node->name) ? new Name($node->name->toString()) : null;
} else {
$this->className = null;
}
Expand Down

0 comments on commit e95e3ba

Please sign in to comment.