Overriding Location Entity
Closed this issue · 1 comments
davidroberto commented
Hi,
I believe the Traits ClickNCollectShippingMethod and ClickNCollectShipment should type-hint LocationInterface instead of Location in order to be able to override the Location entity properly?
Example (in Entity/ClickNCollectShippingMethod):
public function addLocation(Location $location): void
should be :
public function addLocation(LocationInterface $location): void
dunglas commented
Good catch indeed! I'll fix this.