Brille24 / SyliusCustomOptionsPlugin

A Sylius plugin that adds customer options
MIT License
46 stars 34 forks source link

$translatable must not be defined (as in class Sylius\Component\Resource\Model\AbstractTranslation) #150

Open bellu opened 4 months ago

bellu commented 4 months ago

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

mamazu commented 4 months ago

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.

bellu commented 4 months ago

I'm using sylius 1.10.9 and brille24/sylius-customer-options-plugin 4.0.0

mamazu commented 4 months ago

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.