Open yariksheptykin opened 2 months ago
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.
Expected behavior
\Pimcore\Model\DataObject\Fieldcollection\Data\FilterSelectClsStoreAttributes::getField()
return type is compatible withgetField()
return type in its parent class.Actual behavior
With opcache preloading enabled, the following error prevents php-fpm from starting:
FilterSelectClsStoreAttributes
is defined insrc/Resources/install/fieldcollection_sources/fieldcollection_FilterSelectClsStoreAttributes_export.json
. The propertyfield
is defined asIndexFieldSelection
in the json file. The parent class forFilterSelectClsStoreAttributes
isCategoryFilterDefinitionType
.CategoryFilterDefinitionType::getField()
returns string, which is incompatible withFilterSelectClsStoreAttributes::getField()
return type.Definition of
FilterSelectClsStoreAttributes::getField()
is compatible with\Pimcore\Bundle\EcommerceFrameworkBundle\Model\AbstractFilterDefinitionType::getField()
, which is the parent ofCategoryFilterDefinitionType
. We either need to change the parent type ofFilterSelectClsStoreAttributes
toAbstractFilterDefinitionType
or change the return type ofCategoryFilterDefinitionType::getField()
to includeIndexFieldSelection
also.Steps to reproduce
Install pimcore with ecommerce-framework-bundle. Rebuild php classes:
bin/console pimcore:build:classes
and inspect generated\Pimcore\Model\DataObject\Fieldcollection\Data\FilterSelectClsStoreAttributes::getField()
method.