diff --git a/src/lib/Form/Type/ChoiceList/Loader/ContentCreateContentTypeChoiceLoader.php b/src/lib/Form/Type/ChoiceList/Loader/ContentCreateContentTypeChoiceLoader.php index 581ceb3e05..be686f1ad5 100644 --- a/src/lib/Form/Type/ChoiceList/Loader/ContentCreateContentTypeChoiceLoader.php +++ b/src/lib/Form/Type/ChoiceList/Loader/ContentCreateContentTypeChoiceLoader.php @@ -68,7 +68,7 @@ public function loadChoiceList(?callable $value = null): ChoiceListInterface foreach ($contentTypesGroups as $group => $contentTypes) { $contentTypesGroups[$group] = array_filter($contentTypes, function (ContentType $contentType): bool { - return in_array($contentType->id, $this->restrictedContentTypesIds, true); + return in_array($contentType->id, $this->restrictedContentTypesIds); }); }