Breaking: #611 - Change BeVariant Parent Handling
See Issue 611
Description
Previously, a Be had either another Be or a Product as its parent element. These were passed in the
constructor method.
Thanks to PHP's union types, this can now be resolved. A Be now has a $parent that is either of type
Be or of type Product.
The individual methods have been adapted accordingly and it is checked of which class $parent is an instance. In some
cases, the case differentiation could be omitted completely.
Affected Installations
All product extensions that use their own Be in the products are affected. The provided extensions
extcode/cart-products and extcode/cart-events will be adapted accordingly.
Migration
If a custom product extension is used, the constructor must be adapted accordingly. Furthermore, a few
methods in Be have been replaced or their behavior adapted.