Symfony 4.0.1 released

Warning: Symfony 4.0 is no longer supported. Consider upgrading your applications to the most recent Symfony version.

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

  • bug #25304 [Bridge/PhpUnit] Prefer $_SERVER['argv'] over $argv (@ricknox)
  • bug #25272 [SecurityBundle] fix setLogoutOnUserChange calls for context listeners (@dmaicher)
  • bug #25282 [DI] Register singly-implemented interfaces when doing PSR-4 discovery (@nicolas-grekas)
  • bug #25274 [Security] Adding a GuardAuthenticatorHandler alias (@weaverryan)
  • bug #25308 [FrameworkBundle] Fix a bug where a color tag will be shown when passing an antislash (@Simperfit)
  • bug #25278 Fix for missing whitespace control modifier in form layout (@kubawerlos)
  • bug #25306 [Form][TwigBridge] Fix collision between view properties and form fields (@yceruto)
  • bug #25305 [Form][TwigBridge] Fix collision between view properties and form fields (@yceruto)
  • bug #25236 [Form][TwigBridge] Fix collision between view properties and form fields (@yceruto)
  • bug #25312 [DI] Fix deep-inlining of non-shared refs (@nicolas-grekas)
  • bug #25309 [Yaml] parse newlines in quoted multiline strings (@xabbuh)
  • bug #25313 [DI] Fix missing unset leading to false-positive circular ref (@nicolas-grekas)
  • bug #25268 [DI] turn $private to protected in dumped container, to make cache:clear BC (@nicolas-grekas)
  • bug #25285 [DI] Throw an exception if Expression Language is not installed (@sroze)
  • bug #25241 [Yaml] do not eagerly filter comment lines (@xabbuh)
  • bug #25284 [DI] Cast ids to string, as done on 3.4 (@nicolas-grekas, @sroze)
  • bug #25297 [Validator] Fixed the @Valid(groups={"group"}) against null exception case (@vudaltsov)
  • bug #25255 [Console][DI] Fail gracefully (@nicolas-grekas)
  • bug #25264 [DI] Trigger deprecation when setting a to-be-private synthetic service (@nicolas-grekas)
  • bug #25258 [link] Prevent warnings when running link with 2.7 (@dunglas)
  • bug #25244 [DI] Add missing deprecation when fetching private services from ContainerBuilder (@nicolas-grekas)
  • bug #24750 [Validator] ExpressionValidator should use OBJECT_TO_STRING (@Simperfit)
  • bug #25247 [DI] Fix false-positive circular exception (@nicolas-grekas)
  • bug #25226 [HttpKernel] Fix issue when resetting DumpDataCollector (@Pierstoval)
  • bug #25230 Use a more specific file for detecting the bridge (@greg0ire)
  • bug #25232 [WebProfilerBundle] [TwigBundle] Fix Profiler breaking XHTML pages (@tistre)

Want to upgrade to this new release? Fortunately, because Symfony protects backwards-compatibility very closely, this should be quite easy. 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.

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.


Hi, thank you very much for the new release, i am excited!

Found an issue after generating a new bundle:

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.