sdk-php-shop icon indicating copy to clipboard operation
sdk-php-shop copied to clipboard

Fixed type-hint for Discount

Open rkrx opened this issue 2 years ago • 0 comments

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.

rkrx avatar Aug 08 '22 09:08 rkrx