Skip to content

Conversation

@rkrx
Copy link

@rkrx rkrx commented Aug 8, 2022

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant