From 14bd3ed829bba6cb0724e9b22d8359b4b7f66856 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 6 Jun 2019 15:22:58 +0200 Subject: [PATCH 1/5] updated CHANGELOG for 4.3.1 --- CHANGELOG-4.3.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/CHANGELOG-4.3.md b/CHANGELOG-4.3.md index 8f905cd7af..29037980b3 100644 --- a/CHANGELOG-4.3.md +++ b/CHANGELOG-4.3.md @@ -7,6 +7,46 @@ in 4.3 minor versions. To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v4.3.0...v4.3.1 +* 4.3.1 (2019-06-06) + + * bug #31894 Fix wrong requirements for ocramius/proxy-manager in root composer.json (henrikvolmer) + * bug #31865 [Form] Fix wrong DateTime on outdated ICU library (aweelex) + * bug #31893 [HttpKernel] fix link to source generation (nicolas-grekas) + * bug #31880 [FrameworkBundle] fix BC-breaking property in WebTestAssertionsTrait (nicolas-grekas) + * bug #31881 [FramworkBundle][HttpKernel] fix KernelBrowser BC layer (nicolas-grekas) + * bug #31879 [Cache] Pass arg to get callback everywhere (fancyweb) + * bug #31874 [Doctrine Bridge] Check field type before adding Length constraint (belinde) + * bug #31872 [Messenger] Add missing runtime check for ext redis version (chalasr) + * bug #31864 [Cache] Fixed undefined variable in ArrayTrait (eXtreme) + * bug #31863 [HttpFoundation] Fixed case-sensitive handling of cache-control header in RedirectResponse constructor (Ivo) + * bug #31850 [HttpClient] add $response->cancel() (nicolas-grekas) + * bug #31871 [HttpClient] revert bad logic around JSON_THROW_ON_ERROR (nicolas-grekas) + * bug #31869 Fix json-encoding when JSON_THROW_ON_ERROR is used (nicolas-grekas) + * bug #31868 [HttpKernel] Fix handling non-catchable fatal errors (nicolas-grekas) + * bug #31834 [HttpClient] Don't throw InvalidArgumentException on bad Location header (nicolas-grekas) + * bug #31846 [Mailer] Set default crypto method (bpolaszek) + * bug #31849 [Console] Add check for Konsole/Yakuake to disable hyperlinks (belinde) + * bug #31854 Rename the Symfony Mailer service implementation to avoid conflict with SwitMailer (tgalopin) + * bug #31856 [VarDumper] fix dumping the cloner itself (nicolas-grekas) + * bug #31861 [HttpClient] work around PHP 7.3 bug related to json_encode() (nicolas-grekas) + * bug #31860 [HttpFoundation] work around PHP 7.3 bug related to json_encode() (nicolas-grekas) + * bug #31852 [Form] add missing symfony/service-contracts dependency (nicolas-grekas) + * bug #31836 [DoctrineBridge] do not process private properties from parent class (xabbuh) + * bug #31790 [Messenger] set amqp content_type based on serialization format (Tobion) + * bug #31832 [HttpClient] fix unregistering the debug buffer when using curl (nicolas-grekas) + * bug #31407 [Security] added support for updated "distinguished name" format in x509 authentication (Robert Kopera) + * bug #31774 [Mailer] Fix the possibility to set a From header from MessageListener (fabpot) + * bug #31811 [DoctrineBridge] don't add embedded properties to wrapping class metadata (xabbuh) + * bug #31786 [Translation] Fixed case sensitivity of lint:xliff command (javiereguiluz) + * bug #31815 [Translator] Collect locale details earlier in the process (pierredup) + * bug #31761 [TwigBridge] suggest Translation Component when TranslationExtension is used (nicolas-grekas) + * bug #31748 [Messenger] Inject RoutableMessageBus instead of bus locator (chalasr) + * bug #31763 [Security\Core] Make SodiumPasswordEncoder validate BCrypt-ed passwords (nicolas-grekas) + * bug #31744 [Validator] Fix TimezoneValidator default option (ro0NL) + * bug #31749 [DoctrineBridge][Validator] do not enable validator auto mapping by default (xabbuh) + * bug #31757 [DomCrawler] Fix type error with null Form::$currentUri (chalasr) + * bug #31721 [PHPUnitBridge] Use a more appropriate group when deprecating mode (greg0ire) + * 4.3.0 (2019-05-30) * bug #31654 [HttpFoundation] Do not set X-Accel-Redirect for paths outside of X-Accel-Mapping (vilius-g) From 31e678cd3185d826f8e1f2b63cd7bd138b8fb3d0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 6 Jun 2019 15:23:34 +0200 Subject: [PATCH 2/5] updated VERSION for 4.3.1 --- src/Symfony/Component/HttpKernel/Kernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index 8b7b949cf4..9c62c087ec 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -73,12 +73,12 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl private $requestStackSize = 0; private $resetServices = false; - const VERSION = '4.3.1-DEV'; + const VERSION = '4.3.1'; const VERSION_ID = 40301; const MAJOR_VERSION = 4; const MINOR_VERSION = 3; const RELEASE_VERSION = 1; - const EXTRA_VERSION = 'DEV'; + const EXTRA_VERSION = ''; const END_OF_MAINTENANCE = '01/2020'; const END_OF_LIFE = '07/2020'; From 07800fc3e4175a367148cf77c353b3ee420417a6 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 6 Jun 2019 15:31:25 +0200 Subject: [PATCH 3/5] bumped Symfony version to 4.3.2 --- src/Symfony/Component/HttpKernel/Kernel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index 9c62c087ec..b9edce2354 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -73,12 +73,12 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl private $requestStackSize = 0; private $resetServices = false; - const VERSION = '4.3.1'; - const VERSION_ID = 40301; + const VERSION = '4.3.2-DEV'; + const VERSION_ID = 40302; const MAJOR_VERSION = 4; const MINOR_VERSION = 3; - const RELEASE_VERSION = 1; - const EXTRA_VERSION = ''; + const RELEASE_VERSION = 2; + const EXTRA_VERSION = 'DEV'; const END_OF_MAINTENANCE = '01/2020'; const END_OF_LIFE = '07/2020'; From 0041cd9828d91f5647342f256b74aab7e6df0cb2 Mon Sep 17 00:00:00 2001 From: Andrii Dembitskyi Date: Thu, 6 Jun 2019 17:13:36 +0300 Subject: [PATCH 4/5] [HttpKernel] Fix missing use for request and response classes --- src/Symfony/Component/HttpKernel/HttpKernelBrowser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php index ab52df14ed..e413634755 100644 --- a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php +++ b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php @@ -11,6 +11,9 @@ namespace Symfony\Component\HttpKernel; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\Response; + /** * Client simulates a browser and makes requests to an HttpKernel instance. * From 154ce81519446261900e167e65cf3c587ee17dea Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 6 Jun 2019 19:00:17 +0200 Subject: [PATCH 5/5] [Validator] fix deprecation layer of ValidatorBuilder --- UPGRADE-4.2.md | 2 +- UPGRADE-5.0.md | 2 +- src/Symfony/Component/Validator/CHANGELOG.md | 2 +- src/Symfony/Component/Validator/ValidatorBuilder.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/UPGRADE-4.2.md b/UPGRADE-4.2.md index 90cd04d01e..3b1f238fa6 100644 --- a/UPGRADE-4.2.md +++ b/UPGRADE-4.2.md @@ -385,7 +385,7 @@ Validator * The `symfony/translation` dependency has been removed - run `composer require symfony/translation` if you need the component * The `checkMX` and `checkHost` options of the `Email` constraint are deprecated * The component is now decoupled from `symfony/translation` and uses `Symfony\Contracts\Translation\TranslatorInterface` instead - * The `ValidatorBuilderInterface` has been deprecated and `ValidatorBuilder` made final + * The `ValidatorBuilderInterface` has been deprecated and `ValidatorBuilder::setTranslator()` has been made final * Deprecated validating instances of `\DateTimeInterface` in `DateTimeValidator`, `DateValidator` and `TimeValidator`. Use `Type` instead or remove the constraint if the underlying model is type hinted to `\DateTimeInterface` already. * Using the `Bic`, `Country`, `Currency`, `Language` and `Locale` constraints without `symfony/intl` is deprecated * Using the `Email` constraint in strict mode without `egulias/email-validator` is deprecated diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index 4ec9e24f4f..a8e7d0aec3 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -259,7 +259,7 @@ Validator * Calling `EmailValidator::__construct()` method with a boolean parameter has been removed, use `EmailValidator("strict")` instead. * Removed the `checkDNS` and `dnsMessage` options from the `Url` constraint. * The component is now decoupled from `symfony/translation` and uses `Symfony\Contracts\Translation\TranslatorInterface` instead - * The `ValidatorBuilderInterface` has been removed and `ValidatorBuilder` is now final + * The `ValidatorBuilderInterface` has been removed * Removed support for validating instances of `\DateTimeInterface` in `DateTimeValidator`, `DateValidator` and `TimeValidator`. Use `Type` instead or remove the constraint if the underlying model is type hinted to `\DateTimeInterface` already. * The `symfony/intl` component is now required for using the `Bic`, `Country`, `Currency`, `Language` and `Locale` constraints * The `egulias/email-validator` component is now required for using the `Email` constraint in strict mode diff --git a/src/Symfony/Component/Validator/CHANGELOG.md b/src/Symfony/Component/Validator/CHANGELOG.md index 3863b5717a..2d24f7c69c 100644 --- a/src/Symfony/Component/Validator/CHANGELOG.md +++ b/src/Symfony/Component/Validator/CHANGELOG.md @@ -9,7 +9,7 @@ CHANGELOG * added `DivisibleBy` constraint * decoupled from `symfony/translation` by using `Symfony\Contracts\Translation\TranslatorInterface` * deprecated `ValidatorBuilderInterface` - * made `ValidatorBuilder` final + * made `ValidatorBuilder::setTranslator()` final * marked `format` the default option in `DateTime` constraint * deprecated validating instances of `\DateTimeInterface` in `DateTimeValidator`, `DateValidator` and `TimeValidator`. * deprecated using the `Bic`, `Country`, `Currency`, `Language` and `Locale` constraints without `symfony/intl` diff --git a/src/Symfony/Component/Validator/ValidatorBuilder.php b/src/Symfony/Component/Validator/ValidatorBuilder.php index 0766a2e9f3..a65cca4c3d 100644 --- a/src/Symfony/Component/Validator/ValidatorBuilder.php +++ b/src/Symfony/Component/Validator/ValidatorBuilder.php @@ -38,8 +38,6 @@ use Symfony\Contracts\Translation\TranslatorTrait; * The default implementation of {@link ValidatorBuilderInterface}. * * @author Bernhard Schussek - * - * @final since Symfony 4.2 */ class ValidatorBuilder implements ValidatorBuilderInterface { @@ -255,6 +253,8 @@ class ValidatorBuilder implements ValidatorBuilderInterface /** * {@inheritdoc} + * + * @final since Symfony 4.2 */ public function setTranslator(LegacyTranslatorInterface $translator) {