Open rkrx opened 2 years ago
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.
Mirakl\MMP\Common\Domain\Offer\AbstractOffer::getDiscount
NULL
If an offer has no discount, then
Mirakl\MMP\Common\Domain\Offer\AbstractOffer::getDiscount
will returnNULL
. This is not documented in the type-hint, which subsequently causes problems with PHPStan and co.