Skip to content

Commit

Permalink
Revert BC break in ProductVariantInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Apr 9, 2021
1 parent 03546d5 commit 67bf126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Sylius/Component/Product/Model/ProductVariant.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public function removeOptionValue(ProductOptionValueInterface $optionValue): voi
}
}

public function hasOptionValue(?ProductOptionValueInterface $optionValue): bool
public function hasOptionValue(ProductOptionValueInterface $optionValue): bool
{
return $optionValue === null ? true : $this->optionValues->contains($optionValue);
return $this->optionValues->contains($optionValue);
}

public function getProduct(): ?ProductInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function addOptionValue(ProductOptionValueInterface $optionValue): void;

public function removeOptionValue(ProductOptionValueInterface $optionValue): void;

public function hasOptionValue(?ProductOptionValueInterface $optionValue): bool;
public function hasOptionValue(ProductOptionValueInterface $optionValue): bool;

public function getProduct(): ?ProductInterface;

Expand Down

0 comments on commit 67bf126

Please sign in to comment.