We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6139a30 commit a33311dCopy full SHA for a33311d
src/SegmentAssignment/TypeMapper/TypeMapper.php
@@ -49,15 +49,15 @@ public function getTypeStringByObject(ElementInterface $element): string
49
*/
50
public function getTypeStringBySubType(string $subType): string
51
{
52
- if (in_array($subType, Document::$types)) {
+ if (in_array($subType, Document::getTypes())) {
53
return static::TYPE_DOCUMENT;
54
}
55
56
- if (in_array($subType, Asset::$types)) {
+ if (in_array($subType, Asset::getTypes())) {
57
return static::TYPE_ASSET;
58
59
60
- if (in_array($subType, AbstractObject::$types)) {
+ if (in_array($subType, AbstractObject::getTypes())) {
61
return static::TYPE_OBJECT;
62
63
0 commit comments