Symfony 5.1.6 has just been released. Here is a list of the most important changes:

  • bug #38291 [OptionsResolver] Fix deprecation message access (@fancyweb)
  • bug #38248 [HttpClient] Allow bearer token with colon (@stephanvierkant)
  • bug #37837 [Form] Fix custom formats deprecation with HTML5 widgets (@fancyweb)
  • bug #38285 [Contracts][Translation] Optional Intl dependency (@ro0NL)
  • bug #38283 [Translator] Optional Intl dependency (@ro0NL)
  • bug #38271 [ErrorHandler] Escape JSON encoded log context (@ro0NL)
  • bug #38284 [Cache][Lock][Messenger] fix compatibility with Doctrine DBAL 3 (@xabbuh)
  • bug #38228 [Yaml Parser] Fix edge cases when parsing multiple documents (@digilist)
  • bug #38226 [FrameworkBundle] loadRoutes shoud receive RoutingPhpFileLoader (@grachevko)
  • bug #38229 [Yaml] fix parsing comments not prefixed by a space (@xabbuh)
  • bug #38127 [Translator] Make sure a null locale is handled properly (@jschaedl)
  • bug #38221 [Cache] Allow cache tags to be objects implementing toString() (@lstrojny)
  • bug #38212 [HttpKernel] Do not override ma _redirects option in HttpClientKernel (@dmolineus)
  • bug #38215 [HttpClient] Support for CURLOP _LOCALPORT (@derrabus)
  • bug #38202 [FrameworkBundle] Fix xsd definition which prevent to add more than one workflow metadata (@l-vo)
  • bug #38195 [String] improve slugger's portability accross implementations of iconv() (@nicolas-grekas)
  • bug #38166 [Console] work around disabled putenv() (@SenTisso)
  • bug #38190 [Notifier] Fix errors parsing in FirebaseTransport (@jderusse)
  • bug #38173 [HttpClient][HttpClientTrait] don't calculate alternatives if option is aut _ntlm (@ybenhssaien)
  • bug #38169 [PhpUnitBridge] Internal classes are not legacy (@derrabus)
  • feature #38160 [Security] In the new authenticator system, no auth listener is valid (@weaverryan)
  • bug #38156 [Cache] fix ProxyAdapter not persisting items with infinite expiration (@dmaicher)
  • bug #38148 [HttpClient] fail properly when the server replies with HTTP/0.9 (@nicolas-grekas)
  • bug #38131 [Validator] allow consumers to mock all methods (@xabbuh)
  • bug #38140 [DI] dump OS-indepent paths in the preload file (@nicolas-grekas)
  • bug #38139 [DI] dump OS-indepent paths in the compiled container (@nicolas-grekas)
  • bug #38147 [Mailer] Fixed Mailgun API bridge JsonException when API response is not applicaton/json (@asprega)
  • bug #38126 [Cache] Limit cache version character range (@lstrojny)
  • bug #38136 [Messenger] Run postgres setup trigger in transaction (@akondas)
  • bug #38142 [FrameworkBundle] adopt src/.preload.php (@nicolas-grekas)
  • bug #38108 [Cache] Fix key encoding issue in Memcached adapter (@lstrojny)
  • bug #38122 [HttpClient] Fix Array to string conversion notice when parsing JSON error body with non-scalar detail property (@emarref)
  • bug #37097 DateTime validator support for trailing data (@stefankleff)
  • bug #38116 [Console] Silence warnings on sap _window _c _set() call (@chalasr)
  • bug #38114 [Console] guard $argv + $token against null, preventing unnecessary exceptions (@bilogic)
  • bug #38094 [PhpUnitBridge] Skip internal classes in CoverageListenerTrait (@sanmai)
  • bug #38101 [VarExporter] unserialize() might throw an Exception on php 8 (@derrabus)
  • bug #38100 [ErrorHandler] Parse "x not found" errors correctly on php 8 (@derrabus)
  • bug #38099 Prevent parsing invalid octal digits as octal numbers (@julienfalque)
  • bug #38095 [Mailer] Remove unnecessary check for existing request (@jschaedl)
  • bug #38091 [DI] fix ContainerBuilder on PHP8 (@nicolas-grekas)
  • bug #38086 [HttpClient] with "bindto" with NativeHttpClient (@nicolas-grekas)
  • bug #38063 [FrameworkBundle] generate preload.php in src/ to make opcache.preload predictable (@nicolas-grekas)
  • bug #38080 [Console] Make sure $maxAttempts is an int or null (@derrabus)
  • bug #38075 esmtp error not being thrown properly (@Anton Zagorskii)
  • bug #38040 [Yaml Parser] fixed Parser to skip comments when inlining sequences (@korve)
  • bug #38073 [VarDumper] Fix caster for invalid SplFileInfo objects on php 8 (@derrabus)
  • bug #38074 [Messenger] Remove DelaySeconds parameter for FIFO queues (@netbull)
  • bug #38071 [PhpUnitBridge] Adjust output parsing of CoverageListenerTrait for PHPUnit 9.3 (@sanmai, @derrabus)
  • bug #38062 [DI] fix generating preload file when cach _dir is outside projec _dir (@nicolas-grekas)
  • bug #38059 [Cache] Fix CacheCollectorPass with decorated cache pools (@shyim)
  • bug #38054 [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x (@sanmai)
  • bug #38049 [Debug] Parse "x not found" errors correctly on php 8 (@derrabus)
  • bug #38041 [PropertyInfo] Fix typed collections in PHP 7.4 (@ndench)
  • bug #38013 [PHPUnitBridge] Fix deprecation type detection when trigge _deprecation is used (@l-vo)
  • bug #37959 [PhpunitBridge] Fix deprecation type detection (when several autoload files are used) (@l-vo)
  • bug #38031 Allow Drupal to wrap the Symfony test listener (5.1 backport) (@fabpot, @alexpott)

Want to upgrade to this new 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 our upgrade documentation to learn more.

Want to be notified whenever a new Symfony release is published? Or when a version is not maintained anymore? Or only when a security issue is fixed? Consider subscribing to the Symfony Roadmap Notifications.

Published in #Releases