Skip to content

Commit

Permalink
s/static/self/
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Feb 7, 2025
1 parent c72cde3 commit b62b970
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TypedTextContentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
*/
protected function setContent(ValueTypeInterface $content): void
{
Assert::isAOf($content, static::getTextContentType(), InvalidValueTypeException::class);
Assert::isAOf($content, self::getTextContentType(), InvalidValueTypeException::class);
$this->content = $content;
}

Expand Down Expand Up @@ -112,8 +112,8 @@ public function toXML(?DOMElement $parent = null): DOMElement
*/
public static function getTextContentType(): string
{
if (defined('static::TEXTCONTENT_TYPE')) {
$type = static::TEXTCONTENT_TYPE;
if (defined('self::TEXTCONTENT_TYPE')) {
$type = self::TEXTCONTENT_TYPE;
} else {
$type = StringValue::class;
}
Expand Down

0 comments on commit b62b970

Please sign in to comment.