diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 2d64894f413fe..94f0fabcc4676 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -4,7 +4,7 @@
| Bug fix? | yes/no
| New feature? | yes/no
| BC breaks? | no
-| Deprecations? | yes/no
+| Deprecations? | yes/no
| Tests pass? | yes
| Fixed tickets | #...
| License | MIT
diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md
index c3af769a411f8..d055c43f1435d 100644
--- a/CHANGELOG-4.0.md
+++ b/CHANGELOG-4.0.md
@@ -7,6 +7,49 @@ in 4.0 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.0.0...v4.0.1
+* 4.0.7 (2018-04-03)
+
+ * bug #26387 [Yaml] Fix regression when trying to parse multiline (antograssiot)
+ * bug #26749 Add PHPDbg support to HTTP components (hkdobrev)
+ * bug #26609 [Console] Fix check of color support on Windows (mlocati)
+ * bug #26727 [HttpCache] Unlink tmp file on error (Chansig)
+ * bug #26675 [HttpKernel] DumpDataCollector: do not flush when a dumper is provided (ogizanagi)
+ * bug #26663 [TwigBridge] Fix rendering of currency by MoneyType (ro0NL)
+ * bug #26595 [DI] Do not suggest writing an implementation when multiple exist (chalasr)
+ * bug #26662 [DI] Fix hardcoded cache dir for warmups (nicolas-grekas)
+ * bug #26677 Support phpdbg SAPI in Debug::enable() (hkdobrev)
+ * bug #26600 [Routing] Fixed the importing of files using glob patterns that match multiple resources (skalpa)
+ * bug #26589 [Ldap] cast to string when checking empty passwords (ismail1432)
+ * bug #26626 [WebProfilerBundle] use the router to resolve file links (nicolas-grekas)
+ * bug #26634 [DI] Cleanup remainings from autoregistration (nicolas-grekas)
+ * bug #26635 [DI] Dont tell about autoregistration in strict autowiring mode (nicolas-grekas)
+ * bug #26621 [Form] no type errors with invalid submitted data types (xabbuh)
+ * bug #26612 [PHPunit] suite variable should be used (prisis)
+ * bug #26337 [Finder] Fixed leading/trailing / in filename (lyrixx)
+ * bug #26584 [TwigBridge] allow html5 compatible rendering of forms with null names (systemist)
+ * bug #24401 [Form] Change datetime to datetime-local for HTML5 datetime input (pierredup)
+ * bug #26513 [FrameworkBundle] Respect debug mode when warm up annotations (Strate)
+ * bug #26370 [Security] added userChecker to SimpleAuthenticationProvider (i3or1s)
+ * bug #26569 [BrowserKit] Fix cookie path handling when $domain is null (dunglas)
+ * bug #26273 [Security][Profiler] Display the original expression in 'Access decision log' (lyrixx)
+ * bug #26427 [DependencyInjection] fix regression when extending the Container class without a constructor (lsmith77)
+ * bug #26562 [Bridge\PhpUnit] Cannot autoload class "\Symfony\Bridge\PhpUnit\SymfonyTestsListener" (Jake Bishop)
+ * bug #26598 Fixes #26563 (open_basedir restriction in effect) (temperatur)
+ * bug #26568 [Debug] Reset previous exception handler earlier to prevent infinite loop (nicolas-grekas)
+ * bug #26590 Make sure form errors is valid HTML (Nyholm)
+ * bug #26567 [DoctrineBridge] Don't rely on ClassMetadataInfo->hasField in DoctrineOrmTypeGuesser anymore (fancyweb)
+ * feature #26408 Readd 'form_label_errors' block to disable errors on form labels (birkof)
+ * bug #26591 [TwigBridge] Make sure we always render errors. Eventhough labels are disabled (Nyholm)
+ * bug #26356 [FrameworkBundle] HttpCache is not longer abstract (lyrixx)
+ * bug #26548 [DomCrawler] Change bad wording in ChoiceFormField::untick (dunglas)
+ * bug #26482 [PhpUnitBridge] Ability to use different composer.json file (amcastror)
+ * bug #26443 [Fix][HttpFoundation] Fix the updating of timestamp in the MemcachedSessionHandler (Alessandro Loffredo)
+ * bug #26400 [Config] ReflectionClassResource check abstract class (andrey1s)
+ * bug #26433 [DomCrawler] extract(): fix a bug when the attribute list is empty (dunglas)
+ * bug #26041 Display the Welcome Page when there is no homepage defined (javiereguiluz)
+ * bug #26452 [Intl] Load locale aliases to support alias fallbacks (jakzal)
+ * bug #26450 [CssSelector] Fix CSS identifiers parsing - they can start with dash (jakubkulhan)
+
* 4.0.6 (2018-03-05)
* bug #26393 [DI] Skip resource tracking if disabled (chalasr)
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 0b1fbb47f3562..1cb4373ec2030 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -27,8 +27,8 @@ Symfony is the result of the work of many people who made the code better
- Pascal Borreli (pborreli)
- Wouter De Jong (wouterj)
- Joseph Bielawski (stloyd)
- - Karma Dordrak (drak)
- Roland Franssen (ro0)
+ - Karma Dordrak (drak)
- Lukas Kahwe Smith (lsmith)
- Martin Hasoň (hason)
- Jeremy Mikola (jmikola)
@@ -40,6 +40,7 @@ Symfony is the result of the work of many people who made the code better
- Guilhem Niot (energetick)
- Sarah Khalil (saro0h)
- Jonathan Wage (jwage)
+ - Hamza Amrouche (simperfit)
- Diego Saint Esteben (dosten)
- Alexandre Salomé (alexandresalome)
- William Durand (couac)
@@ -47,25 +48,26 @@ Symfony is the result of the work of many people who made the code better
- Francis Besset (francisbesset)
- Iltar van der Berg (kjarli)
- stealth35 (stealth35)
- - Hamza Amrouche (simperfit)
- Alexander Mols (asm89)
- Yonel Ceruto (yonelceruto)
- Bulat Shakirzyanov (avalanche123)
- Peter Rehm (rpet)
- Saša Stamenković (umpirsky)
- Matthias Pigulla (mpdude)
+ - Samuel ROZE (sroze)
- Henrik Bjørnskov (henrikbjorn)
- - Miha Vrhovnik
- - Diego Saint Esteben (dii3g0)
- Dany Maillard (maidmaid)
+ - Miha Vrhovnik
- Pierre du Plessis (pierredup)
+ - Tobias Nyholm (tobias)
+ - Diego Saint Esteben (dii3g0)
- Konstantin Kudryashov (everzet)
- Kevin Bond (kbond)
- Bilal Amarni (bamarni)
- Alexander M. Turek (derrabus)
- Jérémy DERUSSÉ (jderusse)
- Florin Patan (florinpatan)
- - Samuel ROZE (sroze)
+ - Mathieu Piot (mpiot)
- Gábor Egyed (1ed)
- Michel Weimerskirch (mweimerskirch)
- Andrej Hudec (pulzarraider)
@@ -75,7 +77,6 @@ Symfony is the result of the work of many people who made the code better
- Titouan Galopin (tgalopin)
- Konstantin Myakshin (koc)
- Christian Raue
- - Tobias Nyholm (tobias)
- Arnout Boks (aboks)
- Deni
- Henrik Westphal (snc)
@@ -97,9 +98,9 @@ Symfony is the result of the work of many people who made the code better
- Antoine Hérault (herzult)
- Paráda József (paradajozsef)
- David Maicher (dmaicher)
+ - Vladimir Reznichenko (kalessil)
- Arnaud Le Blanc (arnaud-lb)
- Maxime STEINHAUSSER
- - Vladimir Reznichenko (kalessil)
- Michal Piotrowski (eventhorizon)
- Tim Nagel (merk)
- Brice BERNARD (brikou)
@@ -143,22 +144,23 @@ Symfony is the result of the work of many people who made the code better
- Jérôme Vasseur (jvasseur)
- Jérémie Augustin (jaugustin)
- Andréia Bohner (andreia)
+ - Philipp Wahala (hifi)
- Julien Falque (julienfalque)
- Rafael Dohms (rdohms)
- Arnaud Kleinpeter (nanocom)
- jwdeitch
- Mikael Pajunen
- Joel Wurtz (brouznouf)
+ - Valentin Udaltsov (vudaltsov)
- Chris Wilkinson (thewilkybarkid)
- Oleg Voronkovich
- - Philipp Wahala (hifi)
- Vyacheslav Pavlov
- Richard van Laak (rvanlaak)
- Richard Shank (iampersistent)
- Thomas Rabaix (rande)
+ - gadelat (gadelat)
- Rouven Weßling (realityking)
- Teoh Han Hui (teohhanhui)
- - Valentin Udaltsov (vudaltsov)
- Clemens Tolboom
- Helmer Aaviksoo
- Hiromi Hishida (77web)
@@ -171,6 +173,7 @@ Symfony is the result of the work of many people who made the code better
- GDIBass
- jeremyFreeAgent (Jérémy Romey) (jeremyfreeagent)
- James Halsall (jaitsu)
+ - Matthieu Napoli (mnapoli)
- Gabriel Caruso
- Warnar Boekkooi (boekkooi)
- Dmitrii Chekaliuk (lazyhammer)
@@ -180,10 +183,10 @@ Symfony is the result of the work of many people who made the code better
- Dorian Villet (gnutix)
- Sergey Linnik (linniksa)
- Richard Miller (mr_r_miller)
+ - Gabriel Ostrolucký
- Mario A. Alvarez Garcia (nomack84)
- Dennis Benkert (denderello)
- SpacePossum
- - Matthieu Napoli (mnapoli)
- Benjamin Dulau (dbenjamin)
- Mathieu Lemoine (lemoinem)
- Christian Schmidt
@@ -194,12 +197,12 @@ Symfony is the result of the work of many people who made the code better
- bronze1man
- sun (sun)
- Larry Garfield (crell)
- - Gabriel Ostrolucký
- Martin Schuhfuß (usefulthink)
- apetitpa
- Matthieu Bontemps (mbontemps)
- apetitpa
- Pierre Minnieur (pminnieur)
+ - Jannik Zschiesche (apfelbox)
- fivestar
- Dominique Bongiraud
- Jeremy Livingston (jeremylivingston)
@@ -215,6 +218,7 @@ Symfony is the result of the work of many people who made the code better
- Michele Orselli (orso)
- Tom Van Looy (tvlooy)
- Sven Paulus (subsven)
+ - Thomas Calvet (fancyweb)
- Rui Marinho (ruimarinho)
- Niels Keurentjes (curry684)
- Eugene Wissner
@@ -222,9 +226,7 @@ Symfony is the result of the work of many people who made the code better
- Tristan Darricau (nicofuma)
- Michaël Perrin (michael.perrin)
- Marcel Beerta (mazen)
- - gadelat (gadelat)
- Loïc Faugeron
- - Jannik Zschiesche (apfelbox)
- Hidde Wieringa (hiddewie)
- Marco Pivetta (ocramius)
- Rob Frawley 2nd (robfrawley)
@@ -242,14 +244,15 @@ Symfony is the result of the work of many people who made the code better
- Danny Berger (dpb587)
- Ruben Gonzalez (rubenrua)
- Adam Prager (padam87)
+ - Benoît Burnichon (bburnichon)
- Roman Marintšenko (inori)
- Xavier Montaña Carreras (xmontana)
- Mickaël Andrieu (mickaelandrieu)
- Xavier Perez
- Arjen Brouwer (arjenjb)
- Katsuhiro OGAWA
- - Thomas Calvet (fancyweb)
- Patrick McDougle (patrick-mcdougle)
+ - Yanick Witschi (toflar)
- Alif Rachmawadi
- Alessandro Chitolina
- Kristen Gilden (kgilden)
@@ -288,7 +291,6 @@ Symfony is the result of the work of many people who made the code better
- Robert Kiss (kepten)
- Roumen Damianoff (roumen)
- Antonio J. García Lagar (ajgarlag)
- - Benoît Burnichon (bburnichon)
- Kim Hemsø Rasmussen (kimhemsoe)
- Wouter Van Hecke
- Jérôme Parmentier (lctrs)
@@ -297,7 +299,6 @@ Symfony is the result of the work of many people who made the code better
- Michael Holm (hollo)
- Marc Weistroff (futurecat)
- Christian Schmidt
- - Yanick Witschi (toflar)
- Edi Modrić (emodric)
- Chad Sikorra (chadsikorra)
- Chris Smith (cs278)
@@ -331,6 +332,7 @@ Symfony is the result of the work of many people who made the code better
- janschoenherr
- Thomas Schulz (king2500)
- Dariusz Rumiński
+ - Frank de Jonge (frenkynet)
- Berny Cantos (xphere81)
- Thierry Thuon (lepiaf)
- Ricard Clau (ricardclau)
@@ -349,6 +351,7 @@ Symfony is the result of the work of many people who made the code better
- Inal DJAFAR (inalgnu)
- Christian Gärtner (dagardner)
- Tomasz Kowalczyk (thunderer)
+ - Artur Eshenbrener
- François-Xavier de Guillebon (de-gui_f)
- Damien Alexandre (damienalexandre)
- Felix Labrecque
@@ -368,6 +371,7 @@ Symfony is the result of the work of many people who made the code better
- Philipp Kräutli (pkraeutli)
- Kirill chEbba Chebunin (chebba)
- Greg Thornton (xdissent)
+ - Florent Mata (fmata)
- Costin Bereveanu (schniper)
- Loïc Chardonnet (gnusat)
- Marek Kalnik (marekkalnik)
@@ -408,7 +412,6 @@ Symfony is the result of the work of many people who made the code better
- Emanuele Gaspari (inmarelibero)
- Sébastien Santoro (dereckson)
- Brian King
- - Frank de Jonge (frenkynet)
- Michel Salib (michelsalib)
- geoffrey
- Steffen Roßkamp
@@ -446,7 +449,6 @@ Symfony is the result of the work of many people who made the code better
- Marek Pietrzak
- Luc Vieillescazes (iamluc)
- franek (franek)
- - Artur Eshenbrener
- Christian Wahler
- Gintautas Miselis
- Rob Bast
@@ -482,7 +484,6 @@ Symfony is the result of the work of many people who made the code better
- Roy Van Ginneken (rvanginneken)
- ondrowan
- Barry vd. Heuvel (barryvdh)
- - Florent Mata
- Evan S Kaufman (evanskaufman)
- mcben
- Jérôme Vieilledent (lolautruche)
@@ -550,11 +551,13 @@ Symfony is the result of the work of many people who made the code better
- Michiel Boeckaert (milio)
- Geoffrey Tran (geoff)
- Romain Pierre (romain-pierre)
+ - David Prévot
- Jan Behrens
- Mantas Var (mvar)
- Sebastian Krebs
- Jean-Christophe Cuvelier [Artack]
- alcaeus
+ - Fred Cox
- vitaliytv
- Dalibor Karlović (dkarlovi)
- Sebastian Blum
@@ -585,6 +588,7 @@ Symfony is the result of the work of many people who made the code better
- Javier López (loalf)
- Reinier Kip
- Geoffrey Brier (geoffrey-brier)
+ - Boris Vujicic (boris.vujicic)
- Dustin Dobervich (dustin10)
- dantleech
- Anne-Sophie Bachelard (annesophie)
@@ -685,6 +689,7 @@ Symfony is the result of the work of many people who made the code better
- Joshua Nye
- Claudio Zizza
- Dave Marshall (davedevelopment)
+ - Jakub Kulhan (jakubkulhan)
- avorobiev
- Venu
- Lars Vierbergen
@@ -697,6 +702,7 @@ Symfony is the result of the work of many people who made the code better
- Nykopol (nykopol)
- Jordan Deitch
- Casper Valdemar Poulsen
+ - Remon van de Kamp
- Josiah (josiah)
- Joschi Kuphal
- John Bohn (jbohn)
@@ -736,6 +742,7 @@ Symfony is the result of the work of many people who made the code better
- Adrien Lucas (adrienlucas)
- Zhuravlev Alexander (scif)
- James Michael DuPont
+ - Xavier HAUSHERR
- Tom Klingenberg
- Christopher Hall (mythmakr)
- Patrick Dawkins (pjcdawkins)
@@ -748,6 +755,7 @@ Symfony is the result of the work of many people who made the code better
- Sofiane HADDAG (sofhad)
- frost-nzcr4
- Bozhidar Hristov
+ - andrey1s
- Abhoryo
- Fabian Vogler (fabian)
- Korvin Szanto
@@ -846,6 +854,7 @@ Symfony is the result of the work of many people who made the code better
- Mátyás Somfai (smatyas)
- stefan.r
- Valérian Galliat
+ - d-ph
- Rikijs Murgs
- Ben Ramsey (ramsey)
- Amaury Leroux de Lens (amo__)
@@ -921,17 +930,16 @@ Symfony is the result of the work of many people who made the code better
- AKeeman (akeeman)
- Lin Clark
- Jeremy David (jeremy.david)
+ - Gocha Ossinkine (ossinkine)
- Troy McCabe
- Ville Mattila
- ilyes kooli
- gr1ev0us
- mlazovla
- - Boris Vujicic (boris.vujicic)
- Max Beutel
- Antanas Arvasevicius
- Maximilian Berghoff (electricmaxxx)
- nacho
- - Mathieu Piot
- Piotr Antosik (antek88)
- Artem Lopata
- Sergey Novikov (s12v)
@@ -978,10 +986,12 @@ Symfony is the result of the work of many people who made the code better
- Jhonny Lidfors (jhonny)
- Julien Bianchi (jubianchi)
- Robert Meijers
+ - James Sansbury
- Marcin Chwedziak
- hjkl
- Tony Cosentino (tony-co)
- Dan Wilga
+ - Andrew Tch
- Alexander Cheprasov
- Rodrigo Díez Villamuera (rodrigodiez)
- Malte Blättermann
@@ -1067,7 +1077,6 @@ Symfony is the result of the work of many people who made the code better
- Sergey Yuferev
- Tobias Stöckler
- Mario Young
- - Jakub Kulhan
- Ilia (aliance)
- Mo Di (modi)
- Pablo Schläpfer
@@ -1102,7 +1111,6 @@ Symfony is the result of the work of many people who made the code better
- Pierre Tachoire (krichprollsch)
- Marc J. Schmidt (marcjs)
- Marco Jantke
- - Remon van de Kamp
- Saem Ghani
- Clément LEFEBVRE
- Conrad Kleinespel
@@ -1150,6 +1158,7 @@ Symfony is the result of the work of many people who made the code better
- Andreas Frömer
- Philip Frank
- Lance McNearney
+ - Antoine M (amakdessi)
- Gonzalo Vilaseca (gonzalovilaseca)
- Giorgio Premi
- Ian Carroll
@@ -1216,6 +1225,7 @@ Symfony is the result of the work of many people who made the code better
- Qingshan Luo
- Ergie Gonzaga
- Matthew J Mucklo
+ - AnrDaemon
- fdgdfg (psampaz)
- Stéphane Seng
- Maxwell Vandervelde
@@ -1225,7 +1235,6 @@ Symfony is the result of the work of many people who made the code better
- Sebastian Ionescu
- Thomas Ploch
- Simon Neidhold
- - Xavier HAUSHERR
- Valentin VALCIU
- Jeremiah VALERIE
- Kevin Dew
@@ -1282,6 +1291,7 @@ Symfony is the result of the work of many people who made the code better
- Przemysław Piechota (kibao)
- Leonid Terentyev (li0n)
- ryunosuke
+ - zenmate
- victoria
- Christian Schmidt
- Francisco Facioni (fran6co)
@@ -1305,6 +1315,7 @@ Symfony is the result of the work of many people who made the code better
- Vasily Khayrulin (sirian)
- Stefan Koopmanschap (skoop)
- Stefan Hüsges (tronsha)
+ - Jake Bishop (yakobeyak)
- Dan Blows
- Matt Wells
- Nicolas Appriou
@@ -1397,7 +1408,6 @@ Symfony is the result of the work of many people who made the code better
- Artem Lopata (bumz)
- Nicole Cordes
- Roman Orlov
- - andrey1s
- VolCh
- Alexey Popkov
- Gijs Kunze
@@ -1408,6 +1418,7 @@ Symfony is the result of the work of many people who made the code better
- Daan van Renterghem
- Nicole Cordes
- Martin Kirilov
+ - amcastror
- Bram Van der Sype (brammm)
- Guile (guile)
- Julien Moulin (lizjulien)
@@ -1485,6 +1496,7 @@ Symfony is the result of the work of many people who made the code better
- grifx
- Robert Campbell
- Matt Lehner
+ - Helmut Januschka
- Hein Zaw Htet™
- Ruben Kruiswijk
- Cosmin-Romeo TANASE
@@ -1495,12 +1507,15 @@ Symfony is the result of the work of many people who made the code better
- hadriengem
- timaschew
- Jochen Mandl
+ - Marin Nicolae
+ - Alessandro Loffredo
- Ian Phillips
- Haritz
- Matthieu Prat
- Ion Bazan
- Grummfy
- Filipe Guerra
+ - Jean Ragouin
- Gerben Wijnja
- Rowan Manning
- Per Modin
@@ -1573,6 +1588,7 @@ Symfony is the result of the work of many people who made the code better
- Vladimir Chernyshev (volch)
- Yorkie Chadwick (yorkie76)
- GuillaumeVerdon
+ - Philipp Keck
- Ondrej Mirtes
- akimsko
- Youpie
@@ -1614,6 +1630,7 @@ Symfony is the result of the work of many people who made the code better
- Ron Gähler
- Edwin Hageman
- Mantas Urnieža
+ - temperatur
- Cas
- Dusan Kasan
- Myke79
@@ -1630,6 +1647,7 @@ Symfony is the result of the work of many people who made the code better
- Jordan Hoff
- znerol
- Christian Eikermann
+ - Kai Eichinger
- Antonio Angelino
- Matt Fields
- Niklas Keller
@@ -1644,6 +1662,7 @@ Symfony is the result of the work of many people who made the code better
- Jörg Rühl
- wesleyh
- sergey
+ - Daniel Bannert
- Karim Miladi
- Michael Genereux
- patrick-mcdougle
@@ -1668,8 +1687,10 @@ Symfony is the result of the work of many people who made the code better
- Guillaume Aveline
- Adrian Philipp
- James Michael DuPont
+ - Tim Goudriaan
- Kasperki
- Tammy D
+ - Daniel STANCU
- Ondrej Slinták
- vlechemin
- Brian Corrigan
@@ -1702,12 +1723,14 @@ Symfony is the result of the work of many people who made the code better
- Elan Ruusamäe
- Thorsten Hallwas
- Michael Squires
+ - Egor Gorbachev
- Derek Stephen McLean
- Norman Soetbeer
- zorn
- Yuriy Potemkin
- Benjamin Long
- Matt Janssen
+ - Ben Miller
- Peter Gribanov
- Ben Johnson
- kwiateusz
@@ -1856,6 +1879,7 @@ Symfony is the result of the work of many people who made the code better
- drublic
- Andreas Streichardt
- Pascal Hofmann
+ - Stefan Kruppa
- smokeybear87
- Gustavo Adrian
- Kevin Weber
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index e44535a81a19e..59ec7725254f3 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -65,6 +65,7 @@