Skip to content

Commit b62b970

Browse files
committed
s/static/self/
1 parent c72cde3 commit b62b970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TypedTextContentTrait.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
*/
4141
protected function setContent(ValueTypeInterface $content): void
4242
{
43-
Assert::isAOf($content, static::getTextContentType(), InvalidValueTypeException::class);
43+
Assert::isAOf($content, self::getTextContentType(), InvalidValueTypeException::class);
4444
$this->content = $content;
4545
}
4646

@@ -112,8 +112,8 @@ public function toXML(?DOMElement $parent = null): DOMElement
112112
*/
113113
public static function getTextContentType(): string
114114
{
115-
if (defined('static::TEXTCONTENT_TYPE')) {
116-
$type = static::TEXTCONTENT_TYPE;
115+
if (defined('self::TEXTCONTENT_TYPE')) {
116+
$type = self::TEXTCONTENT_TYPE;
117117
} else {
118118
$type = StringValue::class;
119119
}

0 commit comments

Comments
 (0)