diff --git a/composer.json b/composer.json index a72e3280..e45261b3 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "phpunit/phpunit": "^9.5", "psalm/plugin-phpunit": "^0.16", "psalm/plugin-symfony": "^3.0", - "rector/rector": "^0.14", + "rector/rector": "^0.15", "symfony/config": "^4.4 || ^5.4 || ^6.0", "symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0", "symfony/framework-bundle": "^4.4 || ^5.4 || ^6.0", diff --git a/tests/Type/BasePickerTypeTest.php b/tests/Type/BasePickerTypeTest.php index 81deb3e2..da31d868 100644 --- a/tests/Type/BasePickerTypeTest.php +++ b/tests/Type/BasePickerTypeTest.php @@ -32,7 +32,7 @@ final class BasePickerTypeTest extends TestCase /** * @var Stub&TranslatorInterface */ - private $translator; + private TranslatorInterface $translator; private MomentFormatConverter $momentFormatConverter; diff --git a/tests/Type/DatePickerTypeTest.php b/tests/Type/DatePickerTypeTest.php index 19b2a8ff..c4dabf56 100644 --- a/tests/Type/DatePickerTypeTest.php +++ b/tests/Type/DatePickerTypeTest.php @@ -30,7 +30,7 @@ final class DatePickerTypeTest extends TypeTestCase /** * @var Stub&TranslatorInterface */ - private $translator; + private TranslatorInterface $translator; protected function setUp(): void { diff --git a/tests/Type/DateTimePickerTypeTest.php b/tests/Type/DateTimePickerTypeTest.php index a625b266..f1dd663a 100644 --- a/tests/Type/DateTimePickerTypeTest.php +++ b/tests/Type/DateTimePickerTypeTest.php @@ -30,7 +30,7 @@ final class DateTimePickerTypeTest extends TypeTestCase /** * @var Stub&TranslatorInterface */ - private $translator; + private TranslatorInterface $translator; protected function setUp(): void { diff --git a/tests/Validator/ErrorElementTest.php b/tests/Validator/ErrorElementTest.php index 3820f003..ba3dc0a7 100755 --- a/tests/Validator/ErrorElementTest.php +++ b/tests/Validator/ErrorElementTest.php @@ -34,12 +34,12 @@ final class ErrorElementTest extends TestCase /** * @var ExecutionContextInterface&MockObject */ - private $context; + private ExecutionContextInterface $context; /** * @var ContextualValidatorInterface&MockObject */ - private $contextualValidator; + private ContextualValidatorInterface $contextualValidator; private Foo $subject; diff --git a/tests/Validator/InlineValidatorTest.php b/tests/Validator/InlineValidatorTest.php index afb044c3..e08ced58 100644 --- a/tests/Validator/InlineValidatorTest.php +++ b/tests/Validator/InlineValidatorTest.php @@ -32,17 +32,17 @@ final class InlineValidatorTest extends TestCase /** * @var ContainerInterface&MockObject */ - private $container; + private ContainerInterface $container; /** * @var ConstraintValidatorFactoryInterface&MockObject */ - private $constraintValidatorFactory; + private ConstraintValidatorFactoryInterface $constraintValidatorFactory; /** * @var ExecutionContextInterface&MockObject */ - private $context; + private ExecutionContextInterface $context; protected function setUp(): void {