SyliusCustomOptionsPlugin
SyliusCustomOptionsPlugin copied to clipboard
$translatable must not be defined (as in class Sylius\Component\Resource\Model\AbstractTranslation)
After updating my php version to 8.1 and SyliusCustomOptionsPlugin to 4.0, i've this error during composer install:
!! Fatal error: Type of Brille24\SyliusCustomerOptionsPlugin\Entity\CustomerOptions\CustomerOptionGroupTranslation::$translatable must not be defined (as in class Sylius\Component\Resource\Model\AbstractTranslation) in /var/www/html/website/vendor/brille24/sylius-customer-options-plugin/src/Entity/CustomerOptions/CustomerOptionGroupTranslation.php on line 21
Hey thanks for reporting this issue. Can you have a look at what version of Sylius are you running but most importantly what version of the resource bundle. It should be compatible.
I'm using sylius 1.10.9 and brille24/sylius-customer-options-plugin 4.0.0
If you are running that old of a version of Sylius you might need to upgrade the resource bundle:
composer update sylius/resource-bundle
It has to be at least version 1.10.