symfony

Symfony 5.2.4 and 4.4.20 have just been released with about fifty bugs fixed. Bugs fixed in the components Messenger, Translation, DependencyInjection, Serializer, Cache, HttpKernel, Security, Framework, Routing, Intl, Event Dispatcher, Validator, String, Property, Workflow, Console, Form, Finder, Mailer… so Symfony 5.2 and 4.4 branch users are encouraged to upgrade to these versions.

Symfony 5.2.4

Changes in Symfony 5.2.4 branch :

  • bug #40336 [Messenger] Doctrine setup with migrations (@Nyholm)
  • bug #40318 [Translation] deal with indented heredoc/nowdoc tokens (@xabbuh)
  • bug #40350 [DependencyInjection] fix parsing calls of methods named “method” (@xabbuh)
  • bug #40316 [Serializer] zero parts can be omitted in date interval input (@xabbuh)
  • bug #40239 MockResponse tota _time should not be simulated when provided (@Pierrick VIGNAND)
  • bug #40299 [Cache] Add server-commands support for Predis Replication Environments (@DemigodCode)
  • bug #40231 [HttpKernel] Configure session.cooki _secure earlier (@tamcy)
  • bug #40283 [Translation] Make name attribute optional in xliff2 (@MarieMinasyan)
  • bug #40286 [Security] #[CurrentUser] arguments should resolve to null for “anon.” (@chalasr)
  • bug #40281 [FrameworkBundle] Allow x-forwarded-prefix trusted header in config (@drupol)
  • bug #39599 [Cache] Fix Redis TLS scheme rediss for Redis connection (@misaert)
  • bug #40244 [Routing] fix conflict with param named class in attribute (@nlhommet)
  • bug #40273 [Cache] fix setting items’ metadata on commit() (@nicolas-grekas)
  • bug #40258 [Form] Ignoring invalid forms from delet _empty behavior in CollectionType (@yceruto)
  • bug #40246 [EventDispatcher] fix registering subscribers twice on edge-case (@nicolas-grekas)
  • bug #40162 [Intl] fix Locale::getFallback() throwing exception on long $locale (@AmirHo3ein13)
  • bug #40211 [Validator] fix taking error message from the correct violation (@xabbuh)
  • bug #40208 [PropertyInfo] fix resolving self to name of the analyzed class (@xabbuh)
  • bug #40209 [WebLink] Escape double quotes in attributes values (@fancyweb)
  • bug #40192 [Console] fix QuestionHelper::getHiddenResponse() not working with space in project directory name (@Yendric)
  • bug #40203 [String] Check if function exists before declaring it (@Nyholm)
  • bug #40175 [PropertyInfo]  use the right context for properties defined in traits (@xabbuh)
  • bug #40172 [Translation] Allow using dashes in locale when linting Xliff files (@localheinz)
  • bug #39671 [Worflow] Fixed GuardListener when using the new Security system (@lyrixx)
  • bug #40187 [Console] Fix PHP 8.1 null error for pre _match flag (@kylekatarnls)
  • bug #39659 [Form] keep valid submitted choices when additional choices are submitted (@xabbuh)
  • bug #40188 [HttpFoundation] Fix PHP 8.1 null values (@kylekatarnls)
  • bug #40167 [DependencyInjection] Definition::removeMethodCall should remove all matching calls (@ruudk)
  • bug #40160 [PropertyInfo] fix extracting mixed type-hinted property types (@xabbuh)
  • bug #40040 [Finder] Use a lazyIterator to close files descriptors when no longer used (@jderusse)
  • bug #40141 [RateLimiter] Fix slidin _window misbehaving with stale records (@xesxen)
  • bug #40135 [FrameworkBundle] Fix freshness checks with boolean parameters on routes (@HypeMC)
  • bug #40138 [FrameworkBundle] fix registering “annotations.cache” on the “container.ho _path” (@nicolas-grekas)
  • bug #40137 [Form] forward the labe _html option to expanded choice fields (@xabbuh)
  • bug #40116 [FrameworkBundle][Translator] scan directories for translations sequentially (@xabbuh)
  • bug #40124 [Form] merge translation parameters with value configured for parent form (@xabbuh)
  • bug #40104 [HttpKernel] [Kernel] Silence failed deprecations logs writes (@fancyweb)
  • bug #40098 [DependencyInjection] fix tracking of changes to vendor/ dirs (@nicolas-grekas)
  • bug #39980 [Mailer][Mime] Update inline part names with newly generated ContentId (@ddegentesh)
  • bug #40043 [HttpFoundation] Setting REQUES _TIM _FLOAT when constructing a Request object (@ctasada)
  • bug #40050 [FrameworkBundle][Translator] Fixed updating catalogue metadata from Intl domain (@yceruto)
  • bug #40080 Fix Request with DNS issue not retried (@jderusse)
  • bug #40089 [SecurityBundle] rol _names variable instead of roles (@wickedOne)
  • bug #40042 [Doctrine] Restore priority for EventSubscribers (@jderusse)
  • bug #40066 [ErrorHandler] fix parsing return types in DebugClassLoader (@nicolas-grekas)
  • bug #40065 [ErrorHandler] fix handling messages with null bytes from anonymous classes (@nicolas-grekas)
  • bug #40067 [PhpUnitBridge] fix reporting deprecations when they come from DebugClassLoader (@nicolas-grekas)

Changes in the Symfony 4.4.20

  • bug #40318 [Translation] deal with indented heredoc/nowdoc tokens (@xabbuh)
  • bug #40350 [DependencyInjection] fix parsing calls of methods named “method” (@xabbuh)
  • bug #40316 [Serializer] zero parts can be omitted in date interval input (@xabbuh)
  • bug #40239 MockResponse tota _time should not be simulated when provided (@Pierrick VIGNAND)
  • bug #40299 [Cache] Add server-commands support for Predis Replication Environments (@DemigodCode)
  • bug #40231 [HttpKernel] Configure session.cooki _secure earlier (@tamcy)
  • bug #40283 [Translation] Make name attribute optional in xliff2 (@MarieMinasyan)
  • bug #39599 [Cache] Fix Redis TLS scheme rediss for Redis connection (@misaert)
  • bug #40244 [Routing] fix conflict with param named class in attribute (@nlhommet)
  • bug #40273 [Cache] fix setting items’ metadata on commit() (@nicolas-grekas)
  • bug #40258 [Form] Ignoring invalid forms from delet _empty behavior in CollectionType (@yceruto)
  • bug #40162 [Intl] fix Locale::getFallback() throwing exception on long $locale (@AmirHo3ein13)
  • bug #40208 [PropertyInfo] fix resolving self to name of the analyzed class (@xabbuh)
  • bug #40209 [WebLink] Escape double quotes in attributes values (@fancyweb)
  • bug #40192 [Console] fix QuestionHelper::getHiddenResponse() not working with space in project directory name (@Yendric)
  • bug #40175 [PropertyInfo]  use the right context for properties defined in traits (@xabbuh)
  • bug #40172 [Translation] Allow using dashes in locale when linting Xliff files (@localheinz)
  • bug #40187 [Console] Fix PHP 8.1 null error for pre _match flag (@kylekatarnls)
  • bug #39659 [Form] keep valid submitted choices when additional choices are submitted (@xabbuh)
  • bug #40188 [HttpFoundation] Fix PHP 8.1 null values (@kylekatarnls)
  • bug #40167 [DependencyInjection] Definition::removeMethodCall should remove all matching calls (@ruudk)
  • bug #40160 [PropertyInfo] fix extracting mixed type-hinted property types (@xabbuh)
  • bug #40040 [Finder] Use a lazyIterator to close files descriptors when no longer used (@jderusse)
  • bug #40135 [FrameworkBundle] Fix freshness checks with boolean parameters on routes (@HypeMC)
  • bug #40138 [FrameworkBundle] fix registering “annotations.cache” on the “container.ho _path” (@nicolas-grekas)
  • bug #40116 [FrameworkBundle][Translator] scan directories for translations sequentially (@xabbuh)
  • bug #40104 [HttpKernel] [Kernel] Silence failed deprecations logs writes (@fancyweb)
  • bug #40098 [DependencyInjection] fix tracking of changes to vendor/ dirs (@nicolas-grekas)
  • bug #39980 [Mailer][Mime] Update inline part names with newly generated ContentId (@ddegentesh)
  • bug #40043 [HttpFoundation] Setting REQUES _TIM _FLOAT when constructing a Request object (@ctasada)
  • bug #40050 [FrameworkBundle][Translator] Fixed updating catalogue metadata from Intl domain (@yceruto)
  • bug #40089 [SecurityBundle] rol _names variable instead of roles (@wickedOne)
  • bug #40042 [Doctrine] Restore priority for EventSubscribers (@jderusse)
  • bug #40066 [ErrorHandler] fix parsing return types in DebugClassLoader (@nicolas-grekas)
  • bug #40065 [ErrorHandler] fix handling messages with null bytes from anonymous classes (@nicolas-grekas)
  • bug #40067 [PhpUnitBridge] fix reporting deprecations when they come from DebugClassLoader (@nicolas-grekas)
  • bug #40060 fix validator when we have false returned by the current element of the iterator (@FabienSalles)
  • bug #40062 [Mime] Fix case-sensitive handling of header names (@piku235)
  • bug #40023 [Finder]  use proper keys to not override appended files (@xabbuh)
  • bug #40019 [ErrorHandler] Fix strpos error when trying to call a method without a name (@Deuchnord)
  • bug #40004 [Serializer] Prevent access to private properties without getters (@julienfalque)

Want to upgrade to this new Symfony 5.2.4 and 4.4.20 release ? Because Symfony protects backwards-compatibility very closely, this should be quite easy. Use SymfonyInsight upgrade reports to detect the code you will need to change in your project and read the upgrade documentation to learn more.

Notice that the LTS versions is the 4.4 branch will be supported until November 2022 and then November 2023 for security updates, while support for the Symfony 5.2.4 will end by July 2021. The next version of Symfony 5.3 should be available by May 2021.

Symfony is an open source PHP Framework released under an MIT license. More information at https://symfony.com/.

LEAVE A REPLY

Please enter your comment!
Please enter your name here