diff --git a/src/Infrastructure/Search/FilterableTermsUpdater.php b/src/Infrastructure/Search/FilterableTermsUpdater.php index 4080671..254dd93 100644 --- a/src/Infrastructure/Search/FilterableTermsUpdater.php +++ b/src/Infrastructure/Search/FilterableTermsUpdater.php @@ -403,11 +403,7 @@ private function isHierarchicalProperty( MultilingualString|MultilingualLink|AdmissionRequirement|Degree $flatProperty ): bool { - return in_array($flatProperty::class, [ - Degree::class, - AdmissionRequirement::class, - MultilingualLink::class, - ], true); + return !$flatProperty instanceof MultilingualString; } private function createTerm(TermData $termData): ?int