Skip to content

Commit

Permalink
Fix wrong reference in BaseBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-93 committed Feb 15, 2023
1 parent 168effd commit c3a4caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Builder/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public function getTemplateName(): string

public function getDefaultTemplateName(): string
{
return $this->getSimpleClassName() . self::TWIG_EXTENSION;
return $this->getSimpleClassName() . $this::TWIG_EXTENSION;
}

public function getSimpleClassName($class = null): string
{
if (null === $class) {
$class = self::class;
$class = $this::class;
}

$classParts = explode('\\', $class);
Expand Down

0 comments on commit c3a4caa

Please sign in to comment.