Skip to content

Commit

Permalink
2.0.x (#21)
Browse files Browse the repository at this point in the history
- Fix extensionAttribute - Concrete return type must be specified
  • Loading branch information
livca-smile authored May 3, 2024
1 parent 4287754 commit ba0e1a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Api/Data/OfferInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,16 @@ public function setPrice(?float $price): OfferInterface;
public function setSpecialPrice(?float $price): OfferInterface;

/**
* Retrieve existing extension attributes object or create a new one. - need concrete type declaration to generate OfferExtensionInterface
* Retrieve existing extension attributes object or create a new one.
*
* @return ?\Smile\Offer\Api\Data\OfferExtensionInterface
* @return \Smile\Offer\Api\Data\OfferExtensionInterface|null
*/
public function getExtensionAttributes(): ?OfferExtensionInterface;

/**
* Set an extension attributes object.
*
* @param \Smile\Offer\Api\Data\OfferExtensionInterface $extensionAttributes The additional attributes - need concrete type declaration
* @param \Smile\Offer\Api\Data\OfferExtensionInterface $extensionAttributes
* @return $this
*/
public function setExtensionAttributes(\Smile\Offer\Api\Data\OfferExtensionInterface $extensionAttributes): self;
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [2.0.1] - 2024-05-03
[2.0.1]: https://github.com/Smile-SA/magento2-module-offer/compare/2.0.0...2.0.1

- Fix extensionAttribute - Concrete return type must be specified

## [2.0.0] - 2023-09-20
[2.0.0]: https://github.com/Smile-SA/magento2-module-offer/compare/1.4.1...2.0.0

Expand Down

0 comments on commit ba0e1a7

Please sign in to comment.