Skip to content

Commit

Permalink
Merge pull request #1134 from christopherdarling/patch-3
Browse files Browse the repository at this point in the history
ENH BaseElement::getType() use static::class instead of __CLASS__ for…
  • Loading branch information
GuySartorelli authored Jan 24, 2024
2 parents b25ed5f + bf8d867 commit cbc680a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public function getType()
{
$default = $this->i18n_singular_name() ?: 'Block';

return _t(__CLASS__ . '.BlockType', $default);
return _t(static::class . '.BlockType', $default);
}

/**
Expand Down

0 comments on commit cbc680a

Please sign in to comment.