Skip to content

Commit

Permalink
Validate postal code with Attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
oojacoboo committed Oct 7, 2020
1 parent 5c71c3c commit 9667086
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Model/PhysicalAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ class PhysicalAddress extends AbstractModel
*/
protected $region;

/**
* @var Attribute\PostalCode
* @Assert\NotBlank()
* @Assert\Length(max=15)
*/
protected $postalCode;
protected Attribute\PostalCode $postalCode;


/**
Expand Down

0 comments on commit 9667086

Please sign in to comment.