You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-4.4.md
+2
Original file line number
Diff line number
Diff line change
@@ -296,6 +296,8 @@ Validator
296
296
Set it to `true` to keep the current behavior and `false` to reject empty strings.
297
297
In 5.0, it'll become optional and will default to `false`.
298
298
* Overriding the methods `ConstraintValidatorTestCase::setUp()` and `ConstraintValidatorTestCase::tearDown()` without the `void` return-type is deprecated.
299
+
* deprecated `Symfony\Component\Validator\Mapping\Cache\CacheInterface` and all implementations in favor of PSR-6.
300
+
* deprecated `ValidatorBuilder::setMetadataCache`, use `ValidatorBuilder::setMappingCache` instead.
Copy file name to clipboardExpand all lines: UPGRADE-5.0.md
+2
Original file line number
Diff line number
Diff line change
@@ -567,6 +567,8 @@ Validator
567
567
* The `symfony/expression-language` component is now required for using the `Expression` constraint
568
568
* Changed the default value of `Length::$allowEmptyString` to `false` and made it optional
569
569
* Added support for PHPUnit 8. A `void` return-type was added to the `ConstraintValidatorTestCase::setUp()` and `ConstraintValidatorTestCase::tearDown()` methods.
570
+
* The `Symfony\Component\Validator\Mapping\Cache\CacheInterface` and all its implementations have been removed.
571
+
* The `ValidatorBuilder::setMetadataCache` has been removed, use `ValidatorBuilder::setMappingCache` instead.
Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/CHANGELOG.md
+2
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ CHANGELOG
22
22
be used in the violation builder when both `min` and `max` are not null
23
23
* added ability to use stringable objects as violation messages
24
24
* Overriding the methods `ConstraintValidatorTestCase::setUp()` and `ConstraintValidatorTestCase::tearDown()` without the `void` return-type is deprecated.
25
+
* deprecated `Symfony\Component\Validator\Mapping\Cache\CacheInterface` in favor of PSR-6.
26
+
* deprecated `ValidatorBuilder::setMetadataCache`, use `ValidatorBuilder::setMappingCache` instead.
@trigger_error(sprintf('Passing a "%s" to "%s" is deprecated in Symfony 4.4 and will trigger a TypeError in 5.0. Please pass an implementation of "%s" instead.', \get_class($cache), __METHOD__, CacheItemPoolInterface::class), E_USER_DEPRECATED);
0 commit comments