Skip to content

Commit a33311d

Browse files
authored
Avoid usage of deprecated Document::$types (#336)
1 parent 6139a30 commit a33311d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SegmentAssignment/TypeMapper/TypeMapper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public function getTypeStringByObject(ElementInterface $element): string
4949
*/
5050
public function getTypeStringBySubType(string $subType): string
5151
{
52-
if (in_array($subType, Document::$types)) {
52+
if (in_array($subType, Document::getTypes())) {
5353
return static::TYPE_DOCUMENT;
5454
}
5555

56-
if (in_array($subType, Asset::$types)) {
56+
if (in_array($subType, Asset::getTypes())) {
5757
return static::TYPE_ASSET;
5858
}
5959

60-
if (in_array($subType, AbstractObject::$types)) {
60+
if (in_array($subType, AbstractObject::getTypes())) {
6161
return static::TYPE_OBJECT;
6262
}
6363

0 commit comments

Comments
 (0)