Skip to content

Commit 63a33d1

Browse files
committed
Fixed deprecations
1 parent a9d0caa commit 63a33d1

File tree

4 files changed

+37
-35
lines changed

4 files changed

+37
-35
lines changed

composer.lock

Lines changed: 34 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Entity/Base/AbstractCompany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ abstract class AbstractCompany extends AbstractPartsContainingDBElement
8181
/**
8282
* @var string The website of the company
8383
*/
84-
#[Assert\Url]
84+
#[Assert\Url(requireTld: false)]
8585
#[Groups(['full', 'company:read', 'company:write', 'import', 'extended'])]
8686
#[ORM\Column(type: Types::STRING)]
8787
#[Assert\Length(max: 255)]

src/Entity/Parts/PartTraits/ManufacturerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ trait ManufacturerTrait
4949
/**
5050
* @var string The url to the part on the manufacturer's homepage
5151
*/
52-
#[Assert\Url]
52+
#[Assert\Url(requireTld: false)]
5353
#[Groups(['full', 'import', 'part:read', 'part:write'])]
5454
#[ORM\Column(type: Types::TEXT)]
5555
protected string $manufacturer_product_url = '';

src/Entity/PriceInformations/Orderdetail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class Orderdetail extends AbstractDBElement implements TimeStampableInterface, N
124124
/**
125125
* @var string The URL to the product on the supplier's website
126126
*/
127-
#[Assert\Url]
127+
#[Assert\Url(requireTld: false)]
128128
#[Groups(['full', 'import', 'orderdetail:read', 'orderdetail:write'])]
129129
#[ORM\Column(type: Types::TEXT)]
130130
protected string $supplier_product_url = '';

0 commit comments

Comments
 (0)