Skip to content

Commit 004d86d

Browse files
committed
Don't use global names for template children
1 parent b179961 commit 004d86d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Frame.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getName(bool $emptyParent = false): string
5757

5858
public function getClassName(): ?string
5959
{
60-
if ($this->getName()) {
60+
if ($this->getName() && $this->getRootNode() instanceof Frame) {
6161
return $this->sanitizeClassName($this->getName());
6262
}
6363
$prefix = $this->parent?->getClassName() ?? '';

0 commit comments

Comments
 (0)