sdk-php-shop
sdk-php-shop copied to clipboard
Fixed type-hint for Discount
If an offer has no discount, then Mirakl\MMP\Common\Domain\Offer\AbstractOffer::getDiscount
will return NULL
. This is not documented in the type-hint, which subsequently causes problems with PHPStan and co.