Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint errors #180

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PhoneNumberToStringTransformer implements DataTransformerInterface

public function __construct(
string $defaultRegion = PhoneNumberUtil::UNKNOWN_REGION,
int $format = PhoneNumberFormat::INTERNATIONAL
int $format = PhoneNumberFormat::INTERNATIONAL,
) {
$this->defaultRegion = $defaultRegion;
$this->format = $format;
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Constraints/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(
?string $message = null,
?array $groups = null,
$payload = null,
array $options = []
array $options = [],
) {
parent::__construct($options, $groups, $payload);

Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Constraints/PhoneNumberValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PhoneNumberValidator extends ConstraintValidator
public function __construct(
?PhoneNumberUtil $phoneUtil = null,
string $defaultRegion = PhoneNumberUtil::UNKNOWN_REGION,
int $format = PhoneNumberFormat::INTERNATIONAL
int $format = PhoneNumberFormat::INTERNATIONAL,
) {
$this->phoneUtil = $phoneUtil ?? PhoneNumberUtil::getInstance();
$this->defaultRegion = $defaultRegion;
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/Constraints/PhoneNumberValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function testValidate(
array|string|null $type = null,
?string $defaultRegion = null,
?string $regionPath = null,
?int $format = null
?int $format = null,
): void {
$constraint = new PhoneNumber($format, $type, $defaultRegion, $regionPath);

Expand Down
Loading