Merge branch '3.2' into 3.3
* 3.2: Using FQ name for PHP_VERSION_ID [Form] Fix \IntlDateFormatter timezone parameter usage to bypass PHP bug #66323 Harden the debugging of Twig filters and functions bumped Symfony version to 3.2.10 updated VERSION for 3.2.9 updated CHANGELOG for 3.2.9 bumped Symfony version to 2.8.22 updated VERSION for 2.8.21 updated CHANGELOG for 2.8.21 bumped Symfony version to 2.7.29 updated VERSION for 2.7.28 update CONTRIBUTORS for 2.7.28 updated CHANGELOG for 2.7.28
This commit is contained in:
commit
60b89bb67f
|
@ -11,7 +11,7 @@ array_shift($dirs);
|
|||
$mergeBase = trim(shell_exec(sprintf('git merge-base %s HEAD', array_shift($dirs))));
|
||||
|
||||
$packages = array();
|
||||
$flags = PHP_VERSION_ID >= 50400 ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE : 0;
|
||||
$flags = \PHP_VERSION_ID >= 50400 ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE : 0;
|
||||
|
||||
foreach ($dirs as $k => $dir) {
|
||||
if (!system("git diff --name-only $mergeBase -- $dir", $exitStatus)) {
|
||||
|
|
|
@ -7,6 +7,29 @@ in 3.2 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/v3.2.0...v3.2.1
|
||||
|
||||
* 3.2.9 (2017-05-29)
|
||||
|
||||
* bug #22847 [Console] ChoiceQuestion must have choices (ro0NL)
|
||||
* bug #22900 [FrameworkBundle][Console] Fix the override of a command registered by the kernel (aaa2000)
|
||||
* bug #22910 [Filesystem] improve error handling in lock() (xabbuh)
|
||||
* bug #22924 [Cache] Dont use pipelining with RedisCluster (nicolas-grekas)
|
||||
* bug #22718 [Console] Fixed different behaviour of key and value user inputs in multiple choice question (borNfreee)
|
||||
* bug #22829 [Yaml] fix colon without space deprecation (xabbuh)
|
||||
* bug #22901 Fix missing abstract key in XmlDumper (weaverryan)
|
||||
* bug #22912 [DI] Avoid private call to Container::has() (ro0NL)
|
||||
* bug #22866 [DI] Check for privates before shared services (ro0NL)
|
||||
* bug #22874 [WebProfilerBundle] Fix sub-requests display in time profiler panel (nicolas-grekas)
|
||||
* bug #22817 [PhpUnitBridge] optional error handler arguments (xabbuh)
|
||||
* bug #22752 Improved how profiler errors are displayed on small screens (javiereguiluz)
|
||||
* bug #22715 [FrameworkBundle] remove Security deps from the require section (xabbuh)
|
||||
* bug #22647 [VarDumper] Fix dumping of non-nested stubs (nicolas-grekas)
|
||||
* bug #22409 [Yaml] respect inline level when dumping objects as maps (goetas, xabbuh)
|
||||
* bug #22584 [Security] Avoid unnecessary route lookup for empty logout path (ro0NL)
|
||||
* bug #22690 [Console] Fix errors not rethrown even if not handled by console.error listeners (chalasr)
|
||||
* bug #22669 [FrameworkBundle] AbstractConfigCommand: do not try registering bundles twice (ogizanagi)
|
||||
* bug #22676 [FrameworkBundle] Adding the extension XML (flug)
|
||||
* bug #22652 [Workflow] Move twig extension registration to twig bundle (ogizanagi)
|
||||
|
||||
* 3.2.8 (2017-05-01)
|
||||
|
||||
* bug #22550 Allow Upper Case property names in ObjectNormalizer (insekticid)
|
||||
|
|
|
@ -24,20 +24,20 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Wouter De Jong (wouterj)
|
||||
- Romain Neutron (romain)
|
||||
- Grégoire Pineau (lyrixx)
|
||||
- Joseph Bielawski (stloyd)
|
||||
- Karma Dordrak (drak)
|
||||
- Robin Chalas (chalas_r)
|
||||
- Joseph Bielawski (stloyd)
|
||||
- Maxime Steinhausser (ogizanagi)
|
||||
- Karma Dordrak (drak)
|
||||
- Lukas Kahwe Smith (lsmith)
|
||||
- Martin Hasoň (hason)
|
||||
- Maxime Steinhausser (ogizanagi)
|
||||
- Jeremy Mikola (jmikola)
|
||||
- Jean-François Simon (jfsimon)
|
||||
- Benjamin Eberlei (beberlei)
|
||||
- Igor Wiedler (igorw)
|
||||
- Eriksen Costa (eriksencosta)
|
||||
- Jules Pietri (heah)
|
||||
- Sarah Khalil (saro0h)
|
||||
- Roland Franssen (ro0)
|
||||
- Sarah Khalil (saro0h)
|
||||
- Jonathan Wage (jwage)
|
||||
- Guilhem Niot (energetick)
|
||||
- Diego Saint Esteben (dosten)
|
||||
|
@ -49,10 +49,10 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Alexander Mols (asm89)
|
||||
- Bulat Shakirzyanov (avalanche123)
|
||||
- Peter Rehm (rpet)
|
||||
- Iltar van der Berg (kjarli)
|
||||
- Saša Stamenković (umpirsky)
|
||||
- Henrik Bjørnskov (henrikbjorn)
|
||||
- Miha Vrhovnik
|
||||
- Roland Franssen (ro0)
|
||||
- Diego Saint Esteben (dii3g0)
|
||||
- Konstantin Kudryashov (everzet)
|
||||
- Bilal Amarni (bamarni)
|
||||
|
@ -64,8 +64,8 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Michel Weimerskirch (mweimerskirch)
|
||||
- Eric Clemmons (ericclemmons)
|
||||
- Charles Sarrazin (csarrazi)
|
||||
- Pierre du Plessis (pierredup)
|
||||
- Christian Raue
|
||||
- Pierre du Plessis (pierredup)
|
||||
- Arnout Boks (aboks)
|
||||
- Deni
|
||||
- Henrik Westphal (snc)
|
||||
|
@ -77,12 +77,12 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Lee McDermott
|
||||
- Brandon Turner
|
||||
- Luis Cordova (cordoval)
|
||||
- Jérémy DERUSSÉ (jderusse)
|
||||
- Graham Campbell (graham)
|
||||
- Daniel Holmes (dholmes)
|
||||
- Toni Uebernickel (havvg)
|
||||
- Bart van den Burg (burgov)
|
||||
- Jordan Alliot (jalliot)
|
||||
- Jérémy DERUSSÉ (jderusse)
|
||||
- John Wards (johnwards)
|
||||
- Dariusz Ruminski
|
||||
- Fran Moreno (franmomu)
|
||||
|
@ -92,8 +92,8 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Arnaud Le Blanc (arnaud-lb)
|
||||
- Maxime STEINHAUSSER
|
||||
- Michal Piotrowski (eventhorizon)
|
||||
- Tim Nagel (merk)
|
||||
- Issei Murasawa (issei_m)
|
||||
- Tim Nagel (merk)
|
||||
- Brice BERNARD (brikou)
|
||||
- Alexander M. Turek (derrabus)
|
||||
- Baptiste Clavié (talus)
|
||||
|
@ -115,6 +115,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Fabien Pennequin (fabienpennequin)
|
||||
- Gordon Franke (gimler)
|
||||
- Eric GELOEN (gelo)
|
||||
- Yonel Ceruto González (yonelceruto)
|
||||
- Daniel Wehner (dawehner)
|
||||
- Tugdual Saunier (tucksaun)
|
||||
- Théo FIDRY (theofidry)
|
||||
|
@ -122,7 +123,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Florian Lonqueu-Brochard (florianlb)
|
||||
- Sebastiaan Stok (sstok)
|
||||
- Stefano Sala (stefano.sala)
|
||||
- Yonel Ceruto González (yonelceruto)
|
||||
- Evgeniy (ewgraf)
|
||||
- Juti Noppornpitak (shiroyuki)
|
||||
- Tigran Azatyan (tigranazatyan)
|
||||
|
@ -157,6 +157,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Amal Raghav (kertz)
|
||||
- Jonathan Ingram (jonathaningram)
|
||||
- Artur Kotyrba
|
||||
- David Maicher (dmaicher)
|
||||
- jeremyFreeAgent (Jérémy Romey) (jeremyfreeagent)
|
||||
- James Halsall (jaitsu)
|
||||
- Warnar Boekkooi (boekkooi)
|
||||
|
@ -166,6 +167,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Possum
|
||||
- Dorian Villet (gnutix)
|
||||
- Richard Miller (mr_r_miller)
|
||||
- Julien Falque (julienfalque)
|
||||
- Mario A. Alvarez Garcia (nomack84)
|
||||
- Dennis Benkert (denderello)
|
||||
- Benjamin Dulau (dbenjamin)
|
||||
|
@ -180,7 +182,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Daniel Espendiller
|
||||
- sun (sun)
|
||||
- Larry Garfield (crell)
|
||||
- Julien Falque (julienfalque)
|
||||
- Martin Schuhfuß (usefulthink)
|
||||
- apetitpa
|
||||
- Matthieu Bontemps (mbontemps)
|
||||
|
@ -203,6 +204,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Tom Van Looy (tvlooy)
|
||||
- Sven Paulus (subsven)
|
||||
- Rui Marinho (ruimarinho)
|
||||
- Marek Štípek (maryo)
|
||||
- SpacePossum
|
||||
- Eugene Wissner
|
||||
- Julien Brochet (mewt)
|
||||
|
@ -217,7 +219,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- julien pauli (jpauli)
|
||||
- Lorenz Schori
|
||||
- Sébastien Lavoie (lavoiesl)
|
||||
- David Maicher (dmaicher)
|
||||
- Francois Zaninotto
|
||||
- Alexander Kotynia (olden)
|
||||
- Daniel Tschinder
|
||||
|
@ -254,6 +255,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Albert Casademont (acasademont)
|
||||
- Jhonny Lidfors (jhonne)
|
||||
- Diego Agulló (aeoris)
|
||||
- Andreas Schempp (aschempp)
|
||||
- jdhoek
|
||||
- Pavel Batanov (scaytrase)
|
||||
- Nikita Konstantinov
|
||||
|
@ -272,8 +274,8 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Michael Holm (hollo)
|
||||
- Marc Weistroff (futurecat)
|
||||
- Christian Schmidt
|
||||
- Marek Štípek (maryo)
|
||||
- Hidde Wieringa (hiddewie)
|
||||
- Chad Sikorra (chadsikorra)
|
||||
- Jordan Samouh (jordansamouh)
|
||||
- Chris Smith (cs278)
|
||||
- Florian Klein (docteurklein)
|
||||
|
@ -303,10 +305,10 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Francesc Rosàs (frosas)
|
||||
- Massimiliano Arione (garak)
|
||||
- Julien Galenski (ruian)
|
||||
- Andreas Schempp (aschempp)
|
||||
- Bongiraud Dominique
|
||||
- janschoenherr
|
||||
- Thomas Schulz (king2500)
|
||||
- Dariusz Rumiński
|
||||
- Berny Cantos (xphere81)
|
||||
- Ricard Clau (ricardclau)
|
||||
- Mark Challoner (markchalloner)
|
||||
|
@ -385,7 +387,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Christophe L. (christophelau)
|
||||
- Anthon Pang (robocoder)
|
||||
- Emanuele Gaspari (inmarelibero)
|
||||
- Dariusz Rumiński
|
||||
- Sébastien Santoro (dereckson)
|
||||
- Brian King
|
||||
- Michel Salib (michelsalib)
|
||||
|
@ -402,6 +403,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Jan Rosier (rosier)
|
||||
- Thomas Royer (cydonia7)
|
||||
- Josip Kruslin
|
||||
- Asmir Mustafic (goetas)
|
||||
- vagrant
|
||||
- EdgarPE
|
||||
- Florian Pfitzer (marmelatze)
|
||||
|
@ -420,7 +422,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Marcin Sikoń (marphi)
|
||||
- Dominik Zogg (dominik.zogg)
|
||||
- Marek Pietrzak
|
||||
- Chad Sikorra (chadsikorra)
|
||||
- franek (franek)
|
||||
- Christian Wahler
|
||||
- Gintautas Miselis
|
||||
|
@ -544,7 +545,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Andre Rømcke (andrerom)
|
||||
- Nahuel Cuesta (ncuesta)
|
||||
- Chris Boden (cboden)
|
||||
- Asmir Mustafic (goetas)
|
||||
- Stefan Gehrig (sgehrig)
|
||||
- Hany el-Kerdany
|
||||
- Wang Jingyu
|
||||
|
@ -582,6 +582,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Sergey Kolodyazhnyy (skolodyazhnyy)
|
||||
- umpirski
|
||||
- Denis Brumann (dbrumann)
|
||||
- Michael Babker (mbabker)
|
||||
- Quentin de Longraye (quentinus95)
|
||||
- Chris Heng (gigablah)
|
||||
- Richard Bradley
|
||||
|
@ -629,6 +630,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- twifty
|
||||
- Indra Gunawan (guind)
|
||||
- Peter Ward
|
||||
- insekticid
|
||||
- Julien DIDIER (juliendidier)
|
||||
- Dominik Ritter (dritter)
|
||||
- Sebastian Grodzicki (sgrodzicki)
|
||||
|
@ -745,6 +747,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Jan Kramer (jankramer)
|
||||
- abdul malik ikhsan (samsonasik)
|
||||
- Henry Snoek (snoek09)
|
||||
- Jérémy M (th3mouk)
|
||||
- Simone Di Maulo (toretto460)
|
||||
- Christian Morgan
|
||||
- Alexander Miehe (engerim)
|
||||
|
@ -761,6 +764,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Douglas Reith (douglas_reith)
|
||||
- Harry Walter (haswalt)
|
||||
- Johnson Page (jwpage)
|
||||
- Ruben Gonzalez (rubenruateltek)
|
||||
- Michael Roterman (wtfzdotnet)
|
||||
- Arno Geurts
|
||||
- Adán Lobato (adanlobato)
|
||||
|
@ -886,6 +890,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Eddie Jaoude
|
||||
- Antanas Arvasevicius
|
||||
- Haritz Iturbe (hizai)
|
||||
- Baptiste Meyer (meyerbaptiste)
|
||||
- Nerijus Arlauskas (nercury)
|
||||
- SPolischook
|
||||
- Diego Sapriza
|
||||
|
@ -914,6 +919,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Jeremy Bush
|
||||
- wizhippo
|
||||
- Viacheslav Sychov
|
||||
- Tyson Andre
|
||||
- Carlos Ortega Huetos
|
||||
- rpg600
|
||||
- Péter Buri (burci)
|
||||
|
@ -1014,6 +1020,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Conrad Kleinespel
|
||||
- Sebastian Utz
|
||||
- Adrien Gallou (agallou)
|
||||
- Maks Rafalko (bornfree)
|
||||
- Karol Sójko (karolsojko)
|
||||
- Grzegorz Zdanowski (kiler129)
|
||||
- sl_toto (sl_toto)
|
||||
|
@ -1048,7 +1055,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Kim Laï Trinh
|
||||
- Jason Desrosiers
|
||||
- m.chwedziak
|
||||
- insekticid
|
||||
- Philip Frank
|
||||
- Lance McNearney
|
||||
- Giorgio Premi
|
||||
|
@ -1058,6 +1064,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Alberto Pirovano (geezmo)
|
||||
- Pete Mitchell (peterjmit)
|
||||
- Tom Corrigan (tomcorrigan)
|
||||
- adev
|
||||
- Luis Galeas
|
||||
- Martin Pärtel
|
||||
- George Mponos (gmponos)
|
||||
|
@ -1226,6 +1233,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Romain Dorgueil
|
||||
- Grayson Koonce (breerly)
|
||||
- Fabien LUCAS (flucas2)
|
||||
- Indra Gunawan (indragunawan)
|
||||
- Karim Cassam Chenaï (ka)
|
||||
- Nicolas Bastien (nicolas_bastien)
|
||||
- Denis (yethee)
|
||||
|
@ -1273,6 +1281,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Daan van Renterghem
|
||||
- Nicole Cordes
|
||||
- Bram Van der Sype (brammm)
|
||||
- Christopher Hertel (chertel)
|
||||
- Guile (guile)
|
||||
- Julien Moulin (lizjulien)
|
||||
- Mauro Foti (skler)
|
||||
|
@ -1291,6 +1300,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Johann Pardanaud
|
||||
- Trevor Suarez
|
||||
- gedrox
|
||||
- Alan Bondarchuk
|
||||
- dropfen
|
||||
- Andrey Chernykh
|
||||
- Edvinas Klovas
|
||||
|
@ -1303,6 +1313,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- bertillon
|
||||
- Bertalan Attila
|
||||
- Yannick Bensacq (cibou)
|
||||
- Gawain Lynch (gawain)
|
||||
- Luca Genuzio (genuzio)
|
||||
- Hans Nilsson (hansnilsson)
|
||||
- Andrew Marcinkevičius (ifdattic)
|
||||
|
@ -1312,7 +1323,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Dan Patrick (mdpatrick)
|
||||
- Rares Vlaseanu (raresvla)
|
||||
- tante kinast (tante)
|
||||
- Jérémy M (th3mouk)
|
||||
- Vincent LEFORT (vlefort)
|
||||
- Sadicov Vladimir (xtech)
|
||||
- Kevin EMO (zarcox)
|
||||
|
@ -1336,7 +1346,6 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Jonny Schmid (schmidjon)
|
||||
- Götz Gottwald
|
||||
- Veres Lajos
|
||||
- Michael Babker
|
||||
- grifx
|
||||
- Robert Campbell
|
||||
- Matt Lehner
|
||||
|
@ -1415,9 +1424,11 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Yanick Witschi
|
||||
- Ondrej Mirtes
|
||||
- akimsko
|
||||
- Ben Scott
|
||||
- Youpie
|
||||
- srsbiz
|
||||
- Taylan Kasap
|
||||
- Michael Orlitzky
|
||||
- Nicolas A. Bérard-Nault
|
||||
- Saem Ghani
|
||||
- Stefan Oderbolz
|
||||
|
@ -1430,6 +1441,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Ben
|
||||
- Evgeniy Tetenchuk
|
||||
- dasmfm
|
||||
- Mathias Geat
|
||||
- Arnaud Buathier (arnapou)
|
||||
- chesteroni (chesteroni)
|
||||
- Mauricio Lopez (diaspar)
|
||||
|
@ -1516,6 +1528,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Abdulkadir N. A.
|
||||
- Yevgen Kovalienia
|
||||
- Lebnik
|
||||
- Ondřej Führer
|
||||
- Sema
|
||||
- Elan Ruusamäe
|
||||
- Thorsten Hallwas
|
||||
|
@ -1568,6 +1581,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Bill Hance (billhance)
|
||||
- Bernd Matzner (bmatzner)
|
||||
- Bram Tweedegolf (bram_tweedegolf)
|
||||
- Brandon Kelly (brandonkelly)
|
||||
- Choong Wei Tjeng (choonge)
|
||||
- Kousuke Ebihara (co3k)
|
||||
- Loïc Vernet (coil)
|
||||
|
@ -1675,6 +1689,7 @@ Symfony is the result of the work of many people who made the code better
|
|||
- Andrew Carter (andrewcarteruk)
|
||||
- Adam Elsodaney (archfizz)
|
||||
- Daniel Kolvik (dkvk)
|
||||
- Marc Lemay (flug)
|
||||
- Jeroen De Dauw (jeroendedauw)
|
||||
- Maxime COLIN (maximecolin)
|
||||
- Muharrem Demirci (mdemirci)
|
||||
|
|
2
phpunit
2
phpunit
|
@ -7,7 +7,7 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
|
|||
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";
|
||||
exit(1);
|
||||
}
|
||||
if (PHP_VERSION_ID >= 70000 && !getenv('SYMFONY_PHPUNIT_VERSION')) {
|
||||
if (\PHP_VERSION_ID >= 70000 && !getenv('SYMFONY_PHPUNIT_VERSION')) {
|
||||
putenv('SYMFONY_PHPUNIT_VERSION=6.0');
|
||||
}
|
||||
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
|
||||
|
|
|
@ -156,14 +156,20 @@ EOF
|
|||
throw new \UnexpectedValueException('Unsupported callback type');
|
||||
}
|
||||
|
||||
// filter out context/environment args
|
||||
$args = array_filter($refl->getParameters(), function ($param) use ($entity) {
|
||||
if ($entity->needsContext() && $param->getName() === 'context') {
|
||||
return false;
|
||||
}
|
||||
$args = $refl->getParameters();
|
||||
|
||||
return !$param->getClass() || $param->getClass()->getName() !== 'Twig_Environment';
|
||||
});
|
||||
// filter out context/environment args
|
||||
if ($entity->needsEnvironment()) {
|
||||
array_shift($args);
|
||||
}
|
||||
if ($entity->needsContext()) {
|
||||
array_shift($args);
|
||||
}
|
||||
|
||||
if ($type === 'filters') {
|
||||
// remove the value the filter is applied on
|
||||
array_shift($args);
|
||||
}
|
||||
|
||||
// format args
|
||||
$args = array_map(function ($param) {
|
||||
|
@ -174,11 +180,6 @@ EOF
|
|||
return $param->getName();
|
||||
}, $args);
|
||||
|
||||
if ($type === 'filters') {
|
||||
// remove the value the filter is applied on
|
||||
array_shift($args);
|
||||
}
|
||||
|
||||
return $args;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ if ($this->env->isDebug()) {
|
|||
|
||||
EOTXT;
|
||||
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
$expected = preg_replace('/%(.*?)%/', '($context["$1"] ?? null)', $expected);
|
||||
} else {
|
||||
$expected = preg_replace('/%(.*?)%/', '(isset($context["$1"]) ? $context["$1"] : null)', $expected);
|
||||
|
|
|
@ -67,7 +67,7 @@ class FormThemeTest extends TestCase
|
|||
|
||||
protected function getVariableGetter($name)
|
||||
{
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
return sprintf('($context["%s"] ?? null)', $name, $name);
|
||||
}
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@ class SearchAndRenderBlockNodeTest extends TestCase
|
|||
|
||||
protected function getVariableGetter($name)
|
||||
{
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
return sprintf('($context["%s"] ?? null)', $name, $name);
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ class TransNodeTest extends TestCase
|
|||
|
||||
protected function getVariableGetterWithoutStrictCheck($name)
|
||||
{
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
return sprintf('($context["%s"] ?? null)', $name, $name);
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ class TransNodeTest extends TestCase
|
|||
return sprintf('(isset($context["%s"]) || array_key_exists("%s", $context) ? $context["%s"] : (function () { throw new Twig_Error_Runtime(\'Variable "%s" does not exist.\', 0, $this->getSourceContext()); })())', $name, $name, $name, $name);
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
return sprintf('($context["%s"] ?? $this->getContext($context, "%s"))', $name, $name, $name);
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ class PhpExtractor extends AbstractFileExtractor implements ExtractorInterface
|
|||
foreach ($files as $file) {
|
||||
$this->parseTokens(token_get_all(file_get_contents($file)), $catalog);
|
||||
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
||||
gc_mem_caches();
|
||||
}
|
||||
|
|
|
@ -262,7 +262,7 @@ REGEX;
|
|||
|
||||
$output .= self::compressCode($rawChunk);
|
||||
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
||||
unset($tokens, $rawChunk);
|
||||
gc_mem_caches();
|
||||
|
|
|
@ -68,7 +68,7 @@ class ClassMapGenerator
|
|||
|
||||
$classes = self::findClasses($path);
|
||||
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
||||
gc_mem_caches();
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ class DebugClassLoaderTest extends TestCase
|
|||
|
||||
public function testUnsilencing()
|
||||
{
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
$this->markTestSkipped('PHP7 throws exceptions, unsilencing is not required anymore.');
|
||||
}
|
||||
if (defined('HHVM_VERSION')) {
|
||||
|
@ -109,7 +109,7 @@ class DebugClassLoaderTest extends TestCase
|
|||
} catch (\ErrorException $exception) {
|
||||
// if an exception is thrown, the test passed
|
||||
$this->assertStringStartsWith(__FILE__, $exception->getFile());
|
||||
if (PHP_VERSION_ID < 70000) {
|
||||
if (\PHP_VERSION_ID < 70000) {
|
||||
$this->assertRegExp('/^Runtime Notice: Declaration/', $exception->getMessage());
|
||||
$this->assertEquals(E_STRICT, $exception->getSeverity());
|
||||
} else {
|
||||
|
@ -245,7 +245,7 @@ class DebugClassLoaderTest extends TestCase
|
|||
|
||||
public function testReservedForPhp7()
|
||||
{
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
$this->markTestSkipped('PHP7 already prevents using reserved names.');
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ abstract class FilterIterator extends \FilterIterator
|
|||
*/
|
||||
public function rewind()
|
||||
{
|
||||
if (PHP_VERSION_ID > 50607 || (PHP_VERSION_ID > 50523 && PHP_VERSION_ID < 50600)) {
|
||||
if (\PHP_VERSION_ID > 50607 || (\PHP_VERSION_ID > 50523 && \PHP_VERSION_ID < 50600)) {
|
||||
parent::rewind();
|
||||
|
||||
return;
|
||||
|
|
|
@ -119,7 +119,7 @@ class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator
|
|||
}
|
||||
|
||||
// @see https://bugs.php.net/68557
|
||||
if (PHP_VERSION_ID < 50523 || PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50607) {
|
||||
if (\PHP_VERSION_ID < 50523 || \PHP_VERSION_ID >= 50600 && \PHP_VERSION_ID < 50607) {
|
||||
parent::next();
|
||||
}
|
||||
|
||||
|
|
|
@ -162,6 +162,10 @@ class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer
|
|||
$dateFormat = $this->dateFormat;
|
||||
$timeFormat = $this->timeFormat;
|
||||
$timezone = $ignoreTimezone ? 'UTC' : $this->outputTimezone;
|
||||
if (class_exists('IntlTimeZone', false)) {
|
||||
// see https://bugs.php.net/bug.php?id=66323
|
||||
$timezone = \IntlTimeZone::createTimeZone($timezone);
|
||||
}
|
||||
$calendar = $this->calendar;
|
||||
$pattern = $this->pattern;
|
||||
|
||||
|
|
|
@ -82,7 +82,8 @@ class DateType extends AbstractType
|
|||
\Locale::getDefault(),
|
||||
$dateFormat,
|
||||
$timeFormat,
|
||||
null,
|
||||
// see https://bugs.php.net/bug.php?id=66323
|
||||
class_exists('IntlTimeZone', false) ? \IntlTimeZone::createDefault() : null,
|
||||
$calendar,
|
||||
$pattern
|
||||
);
|
||||
|
|
|
@ -1577,7 +1577,7 @@ class Request
|
|||
public function getContent($asResource = false)
|
||||
{
|
||||
$currentContentIsResource = is_resource($this->content);
|
||||
if (PHP_VERSION_ID < 50600 && false === $this->content) {
|
||||
if (\PHP_VERSION_ID < 50600 && false === $this->content) {
|
||||
throw new \LogicException('getContent() can only be called once when using the resource return type and PHP below 5.6.');
|
||||
}
|
||||
|
||||
|
|
|
@ -1057,7 +1057,7 @@ class RequestTest extends TestCase
|
|||
*/
|
||||
public function testGetContentCantBeCalledTwiceWithResources($first, $second)
|
||||
{
|
||||
if (PHP_VERSION_ID >= 50600) {
|
||||
if (\PHP_VERSION_ID >= 50600) {
|
||||
$this->markTestSkipped('PHP >= 5.6 allows to open php://input several times.');
|
||||
}
|
||||
|
||||
|
|
|
@ -822,7 +822,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||
|
||||
$output .= $rawChunk;
|
||||
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
||||
unset($tokens, $rawChunk);
|
||||
gc_mem_caches();
|
||||
|
|
|
@ -435,7 +435,7 @@ abstract class AbstractIntlDateFormatterTest extends TestCase
|
|||
|
||||
public function testFormatWithDateTimeZoneGmtOffset()
|
||||
{
|
||||
if (defined('HHVM_VERSION_ID') || PHP_VERSION_ID <= 50509) {
|
||||
if (defined('HHVM_VERSION_ID') || \PHP_VERSION_ID <= 50509) {
|
||||
$this->markTestSkipped('DateTimeZone GMT offsets are supported since 5.5.10. See https://github.com/facebook/hhvm/issues/5875 for HHVM.');
|
||||
}
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@ class PropertyAccessor implements PropertyAccessorInterface
|
|||
$overwrite = true;
|
||||
|
||||
try {
|
||||
if (PHP_VERSION_ID < 70000 && false === self::$previousErrorHandler) {
|
||||
if (\PHP_VERSION_ID < 70000 && false === self::$previousErrorHandler) {
|
||||
self::$previousErrorHandler = set_error_handler(self::$errorHandler);
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ class AnnotationFileLoader extends FileLoader
|
|||
$collection->addResource(new FileResource($path));
|
||||
$collection->addCollection($this->loader->load($class, $type));
|
||||
}
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
||||
gc_mem_caches();
|
||||
}
|
||||
|
|
|
@ -476,7 +476,7 @@ EOTXT
|
|||
*/
|
||||
public function testBuggyRefs()
|
||||
{
|
||||
if (PHP_VERSION_ID >= 50600) {
|
||||
if (\PHP_VERSION_ID >= 50600) {
|
||||
$this->markTestSkipped('PHP 5.6 fixed refs counting');
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue