From 8693659c92138747ba379aa1c86f0bb43a2abedf Mon Sep 17 00:00:00 2001 From: Olivier Dolbeau Date: Mon, 4 Nov 2024 17:44:57 +0100 Subject: [PATCH] Fix lint errors --- src/Form/DataTransformer/PhoneNumberToStringTransformer.php | 2 +- src/Validator/Constraints/PhoneNumber.php | 2 +- src/Validator/Constraints/PhoneNumberValidator.php | 2 +- tests/Validator/Constraints/PhoneNumberValidatorTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Form/DataTransformer/PhoneNumberToStringTransformer.php b/src/Form/DataTransformer/PhoneNumberToStringTransformer.php index e5770cdf..dd7d4be4 100644 --- a/src/Form/DataTransformer/PhoneNumberToStringTransformer.php +++ b/src/Form/DataTransformer/PhoneNumberToStringTransformer.php @@ -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; diff --git a/src/Validator/Constraints/PhoneNumber.php b/src/Validator/Constraints/PhoneNumber.php index d38ac564..57093eac 100644 --- a/src/Validator/Constraints/PhoneNumber.php +++ b/src/Validator/Constraints/PhoneNumber.php @@ -67,7 +67,7 @@ public function __construct( ?string $message = null, ?array $groups = null, $payload = null, - array $options = [] + array $options = [], ) { parent::__construct($options, $groups, $payload); diff --git a/src/Validator/Constraints/PhoneNumberValidator.php b/src/Validator/Constraints/PhoneNumberValidator.php index 9224ad57..0b304d98 100644 --- a/src/Validator/Constraints/PhoneNumberValidator.php +++ b/src/Validator/Constraints/PhoneNumberValidator.php @@ -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; diff --git a/tests/Validator/Constraints/PhoneNumberValidatorTest.php b/tests/Validator/Constraints/PhoneNumberValidatorTest.php index bde696b8..02014249 100644 --- a/tests/Validator/Constraints/PhoneNumberValidatorTest.php +++ b/tests/Validator/Constraints/PhoneNumberValidatorTest.php @@ -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);