diff --git a/src/autocompletes/SectionShorthandFieldsAutocomplete.php b/src/autocompletes/SectionShorthandFieldsAutocomplete.php index 5393391..4ab6a33 100644 --- a/src/autocompletes/SectionShorthandFieldsAutocomplete.php +++ b/src/autocompletes/SectionShorthandFieldsAutocomplete.php @@ -171,7 +171,7 @@ public function generateCompleteItems(): void protected function addMagicGetterProperties(ElementInterface $element): void { foreach (self::MAGIC_GETTER_PROPERTIES as $key => $value) { - if ($key === $element::class) { + if ($key === get_class($element)) { foreach ($value as $name => $docs) { CompleteItem::create() ->insertText($name)