Skip to content

Commit 1188909

Browse files
committed
feat: add strong PHP Types, cleanup
1 parent f9749ea commit 1188909

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Validator/Constraint/Address.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ class Address extends Constraint
2929
self::INVALID_ADDRESS_ERROR => 'INVALID_ADDRESS_ERROR',
3030
];
3131

32-
public string $service = AddressValidator::class;
33-
34-
public function __construct(public string $message = 'Address {{ address }} is not valid.', ?array $groups = null, $payload = null)
32+
public function __construct(public string $service = AddressValidator::class, public string $message = 'Address {{ address }} is not valid.', ?array $groups = null, $payload = null)
3533
{
3634
parent::__construct(null, $groups, $payload);
3735
}

0 commit comments

Comments
 (0)