Skip to content

Commit

Permalink
Use PHP8 attribute in dist file override
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Jul 13, 2024
1 parent 6a8ced1 commit ee94165
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ use Sylius\Component\Product\Model\ProductAttribute as BaseProductAttribute;
* @ORM\Entity
* @ORM\Table(name="sylius_product_attribute")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_attribute')]
-class ProductAttribute extends BaseProductAttribute
+class ProductAttribute extends BaseProductAttribute implements SearchableInterface
{
Expand Down
2 changes: 2 additions & 0 deletions dist/src/Entity/Product/ProductAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_attribute")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_attribute')]
class ProductAttribute extends BaseProductAttribute implements SearchableInterface
{
use SearchableTrait;
Expand Down
2 changes: 2 additions & 0 deletions dist/src/Entity/Product/ProductOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* @ORM\Entity
* @ORM\Table(name="sylius_product_option")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_option')]
class ProductOption extends BaseProductOption implements SearchableInterface
{
use SearchableTrait;
Expand Down

0 comments on commit ee94165

Please sign in to comment.