Skip to content

Commit

Permalink
Merge pull request #180 from odolbeau/fix-lint-errors
Browse files Browse the repository at this point in the history
Fix lint errors
  • Loading branch information
odolbeau authored Nov 4, 2024
2 parents bd34462 + 8693659 commit ac4ea98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit ac4ea98

Please sign in to comment.