Merge branch '2.8' into 3.3

* 2.8:
  Remove some unused variables, properties and methods
  [ExpressionLanguage] Fix parse error on 5.3
  [HttpKernel] remove noisy frame in controller stack traces
  [ExpressionLanguage] throw an SyntaxError instead of letting a undefined index notice
  Fix php doc in Table class
  bumped Symfony version to 2.8.33
  updated VERSION for 2.8.32
  updated CHANGELOG for 2.8.32
  bumped Symfony version to 2.7.40
  updated VERSION for 2.7.39
  update CONTRIBUTORS for 2.7.39
  updated CHANGELOG for 2.7.39
This commit is contained in:
Nicolas Grekas 2017-12-08 15:18:43 +01:00
commit 344d93501e
12 changed files with 56 additions and 40 deletions

View File

@ -14,8 +14,8 @@ Symfony is the result of the work of many people who made the code better
- Victor Berchet (victor)
- Johannes S (johannes)
- Jakub Zalas (jakubzalas)
- Kris Wallsmith (kriswallsmith)
- Kévin Dunglas (dunglas)
- Kris Wallsmith (kriswallsmith)
- Ryan Weaver (weaverryan)
- Javier Eguiluz (javier.eguiluz)
- Maxime Steinhausser (ogizanagi)
@ -29,8 +29,8 @@ Symfony is the result of the work of many people who made the code better
- Joseph Bielawski (stloyd)
- Karma Dordrak (drak)
- Lukas Kahwe Smith (lsmith)
- Martin Hasoň (hason)
- Roland Franssen (ro0)
- Martin Hasoň (hason)
- Jeremy Mikola (jmikola)
- Jean-François Simon (jfsimon)
- Benjamin Eberlei (beberlei)
@ -52,24 +52,24 @@ Symfony is the result of the work of many people who made the code better
- Peter Rehm (rpet)
- Saša Stamenković (umpirsky)
- Henrik Bjørnskov (henrikbjorn)
- Yonel Ceruto (yonelceruto)
- Miha Vrhovnik
- Matthias Pigulla (mpdude)
- Diego Saint Esteben (dii3g0)
- Konstantin Kudryashov (everzet)
- Bilal Amarni (bamarni)
- Yonel Ceruto (yonelceruto)
- Dany Maillard (maidmaid)
- Kevin Bond (kbond)
- Dany Maillard (maidmaid)
- Pierre du Plessis (pierredup)
- Florin Patan (florinpatan)
- Jérémy DERUSSÉ (jderusse)
- Pierre du Plessis (pierredup)
- Gábor Egyed (1ed)
- Michel Weimerskirch (mweimerskirch)
- Andrej Hudec (pulzarraider)
- Alexander M. Turek (derrabus)
- Eric Clemmons (ericclemmons)
- Jáchym Toušek (enumag)
- Charles Sarrazin (csarrazi)
- Alexander M. Turek (derrabus)
- Konstantin Myakshin (koc)
- Christian Raue
- Arnout Boks (aboks)
@ -79,6 +79,7 @@ Symfony is the result of the work of many people who made the code better
- Titouan Galopin (tgalopin)
- Douglas Greenshields (shieldo)
- Tobias Nyholm (tobias)
- Issei Murasawa (issei_m)
- Lee McDermott
- Brandon Turner
- Luis Cordova (cordoval)
@ -91,13 +92,14 @@ Symfony is the result of the work of many people who made the code better
- John Wards (johnwards)
- Dariusz Ruminski
- Fran Moreno (franmomu)
- Issei Murasawa (issei_m)
- Antoine Hérault (herzult)
- Paráda József (paradajozsef)
- Arnaud Le Blanc (arnaud-lb)
- Maxime STEINHAUSSER
- Michal Piotrowski (eventhorizon)
- Samuel ROZE (sroze)
- Tim Nagel (merk)
- Amrouche Hamza (simperfit)
- Brice BERNARD (brikou)
- Baptiste Clavié (talus)
- Vladimir Reznichenko (kalessil)
@ -126,6 +128,7 @@ Symfony is the result of the work of many people who made the code better
- Sebastiaan Stok (sstok)
- Stefano Sala (stefano.sala)
- Evgeniy (ewgraf)
- Grégoire Paris (greg0ire)
- Vincent AUBERT (vincent)
- Juti Noppornpitak (shiroyuki)
- Tigran Azatyan (tigranazatyan)
@ -135,7 +138,6 @@ Symfony is the result of the work of many people who made the code better
- Guilherme Blanco (guilhermeblanco)
- Pablo Godel (pgodel)
- Jérémie Augustin (jaugustin)
- Grégoire Paris (greg0ire)
- Andréia Bohner (andreia)
- Rafael Dohms (rdohms)
- Arnaud Kleinpeter (nanocom)
@ -149,6 +151,7 @@ Symfony is the result of the work of many people who made the code better
- Vyacheslav Pavlov
- Richard van Laak (rvanlaak)
- Javier Spagnoletti (phansys)
- Julien Falque (julienfalque)
- Richard Shank (iampersistent)
- Thomas Rabaix (rande)
- Rouven Weßling (realityking)
@ -160,7 +163,6 @@ Symfony is the result of the work of many people who made the code better
- Matthieu Ouellette-Vachon (maoueh)
- Michał Pipa (michal.pipa)
- Dawid Nowak
- Julien Falque (julienfalque)
- Amal Raghav (kertz)
- Jonathan Ingram (jonathaningram)
- Artur Kotyrba
@ -171,8 +173,6 @@ Symfony is the result of the work of many people who made the code better
- Warnar Boekkooi (boekkooi)
- Dmitrii Chekaliuk (lazyhammer)
- Clément JOBEILI (dator)
- Amrouche Hamza
- Samuel ROZE (sroze)
- Daniel Espendiller
- Possum
- Dorian Villet (gnutix)
@ -190,6 +190,7 @@ Symfony is the result of the work of many people who made the code better
- Stepan Anchugov (kix)
- bronze1man
- sun (sun)
- Valentin Udaltsov (vudaltsov)
- Larry Garfield (crell)
- Martin Schuhfuß (usefulthink)
- apetitpa
@ -248,7 +249,6 @@ Symfony is the result of the work of many people who made the code better
- Pierre-Yves LEBECQ (pylebecq)
- Jordan Samouh (jordansamouh)
- Jakub Kucharovic (jkucharovic)
- Valentin Udaltsov (vudaltsov)
- Uwe Jäger (uwej711)
- Eugene Leonovich (rybakit)
- Filippo Tessarotto
@ -261,6 +261,7 @@ Symfony is the result of the work of many people who made the code better
- Nikolay Labinskiy (e-moe)
- Leo Feyer
- Chekote
- gadelat (gadelat)
- Thomas Adam
- Albert Casademont (acasademont)
- Jhonny Lidfors (jhonne)
@ -299,8 +300,8 @@ Symfony is the result of the work of many people who made the code better
- Thomas Tourlourat (armetiz)
- Andrey Esaulov (andremaha)
- Grégoire Passault (gregwar)
- Jerzy Zawadzki (jzawadzki)
- Ismael Ambrosi (iambrosi)
- gadelat (gadelat)
- Baptiste Lafontaine
- Aurelijus Valeiša (aurelijus)
- Victor Bocharsky (bocharsky_bw)
@ -345,6 +346,7 @@ Symfony is the result of the work of many people who made the code better
- Yaroslav Kiliba
- Terje Bråten
- Robbert Klarenbeek (robbertkl)
- Edi Modrić (emodric)
- Thomas Calvet (fancyweb)
- Niels Keurentjes (curry684)
- JhonnyL
@ -364,7 +366,6 @@ Symfony is the result of the work of many people who made the code better
- Loïc Chardonnet (gnusat)
- Marek Kalnik (marekkalnik)
- Vyacheslav Salakhutdinov (megazoll)
- Jerzy Zawadzki (jzawadzki)
- Hassan Amouhzi
- Tamas Szijarto
- Pavel Volokitin (pvolok)
@ -375,6 +376,7 @@ Symfony is the result of the work of many people who made the code better
- Tobias Naumann (tna)
- Daniel Beyer
- Shein Alexey
- Alex Rock Ancelet (pierstoval)
- Romain Gautier (mykiwi)
- Joe Lencioni
- Daniel Tschinder
@ -434,7 +436,6 @@ Symfony is the result of the work of many people who made the code better
- cedric lombardot (cedriclombardot)
- Jonas Flodén (flojon)
- Thomas Perez (scullwm)
- Edi Modrić (emodric)
- Marcin Sikoń (marphi)
- Dominik Zogg (dominik.zogg)
- Marek Pietrzak
@ -446,6 +447,7 @@ Symfony is the result of the work of many people who made the code better
- Rob Bast
- Zander Baldwin
- Adam Harvey
- Anton Bakai
- Maxime Veber (nek-)
- Alex Bakhturin
- Yanick Witschi (toflar)
@ -495,7 +497,6 @@ Symfony is the result of the work of many people who made the code better
- Arjen van der Meijden
- Michele Locati
- Dariusz Ruminski
- Alex Rock Ancelet (pierstoval)
- Erik Trapman (eriktrapman)
- De Cock Xavier (xdecock)
- Almog Baku (almogbaku)
@ -619,7 +620,6 @@ Symfony is the result of the work of many people who made the code better
- Catalin Dan
- Stephan Vock
- Benjamin Zikarsky (bzikarsky)
- Anton Bakai
- Simon Schick (simonsimcity)
- redstar504
- Tristan Roussel
@ -711,8 +711,10 @@ Symfony is the result of the work of many people who made the code better
- Nikita Nefedov (nikita2206)
- cgonzalez
- Ben
- Mathieu Lechat
- Vincent Composieux (eko)
- Jayson Xu (superjavason)
- Christopher Hertel (chertel)
- Hubert Lenoir (hubert_lenoir)
- Jaik Dean (jaikdean)
- fago
@ -733,6 +735,7 @@ Symfony is the result of the work of many people who made the code better
- Pierre Vanliefland (pvanliefland)
- Sofiane HADDAG (sofhad)
- frost-nzcr4
- Bozhidar Hristov
- Abhoryo
- Fabian Vogler (fabian)
- Korvin Szanto
@ -763,6 +766,7 @@ Symfony is the result of the work of many people who made the code better
- Fabien LUCAS (flucas2)
- Jörn Lang (j.lang)
- Omar Yepez (oyepez003)
- Gawain Lynch (gawain)
- mwsaz
- Jelle Kapitein
- Benoît Bourgeois
@ -925,6 +929,7 @@ Symfony is the result of the work of many people who made the code better
- Christian
- Denis Golubovskiy (bukashk0zzz)
- Sergii Smertin (nfx)
- Michał Strzelecki
- hugofonseca (fonsecas72)
- Martynas Narbutas
- Bailey Parker
@ -1002,6 +1007,7 @@ Symfony is the result of the work of many people who made the code better
- Brooks Boyd
- Roger Webb
- Dmitriy Simushev
- pkowalczyk
- Max Voloshin (maxvoloshin)
- Nicolas Fabre (nfabre)
- Raul Rodriguez (raul782)
@ -1127,6 +1133,7 @@ Symfony is the result of the work of many people who made the code better
- Max Summe
- WedgeSama
- Felds Liscia
- Chihiro Adachi (chihiro-adachi)
- Sullivan SENECHAL
- Tadcka
- Beth Binkovitz
@ -1283,6 +1290,7 @@ Symfony is the result of the work of many people who made the code better
- nuncanada
- flack
- František Bereň
- Jeremiah VALERIE
- Mike Francis
- Christoph Nissle (derstoffel)
- Ionel Scutelnicu (ionelscutelnicu)
@ -1305,6 +1313,7 @@ Symfony is the result of the work of many people who made the code better
- Andrew Zhilin (zhil)
- Oleksii Zhurbytskyi
- Andy Stanberry
- Felix Marezki
- Luiz “Felds” Liscia
- Thomas Rothe
- nietonfir
@ -1352,7 +1361,6 @@ Symfony is the result of the work of many people who made the code better
- Nicole Cordes
- Martin Kirilov
- Bram Van der Sype (brammm)
- Christopher Hertel (chertel)
- Guile (guile)
- Julien Moulin (lizjulien)
- Mauro Foti (skler)
@ -1386,7 +1394,6 @@ Symfony is the result of the work of many people who made the code better
- Bertalan Attila
- Yannick Bensacq (cibou)
- Freek Van der Herten (freekmurze)
- Gawain Lynch (gawain)
- Luca Genuzio (genuzio)
- Hans Nilsson (hansnilsson)
- Andrew Marcinkevičius (ifdattic)
@ -1444,6 +1451,7 @@ Symfony is the result of the work of many people who made the code better
- David Windell
- Gabriel Birke
- skafandri
- Derek Bonner
- Alan Chen
- Maerlyn
- Even André Fiskvik
@ -1487,6 +1495,7 @@ Symfony is the result of the work of many people who made the code better
- Ian Jenkins (jenkoian)
- Jorge Martin (jorgemartind)
- Joeri Verdeyen (jverdeyen)
- Dmitrii Poddubnyi (karser)
- Kevin Verschaeve (keversc)
- Kevin Herrera (kherge)
- Luis Ramón López López (lrlopez)
@ -1500,6 +1509,7 @@ Symfony is the result of the work of many people who made the code better
- Jimmy Leger (redpanda)
- Marcin Szepczynski (szepczynski)
- Cyrille Jouineau (tuxosaurus)
- Vladimir Chernyshev (volch)
- Yorkie Chadwick (yorkie76)
- GuillaumeVerdon
- Ondrej Mirtes
@ -1582,9 +1592,11 @@ Symfony is the result of the work of many people who made the code better
- Michael Schneider
- Cédric Bertolini
- n-aleha
- Anatol Belski
- Şəhriyar İmanov
- Kaipi Yann
- Sam Williams
- Guillaume Aveline
- Adrian Philipp
- James Michael DuPont
- Kasperki
@ -1744,6 +1756,7 @@ Symfony is the result of the work of many people who made the code better
- Schuyler Jager (sjager)
- Pascal Luna (skalpa)
- Volker (skydiablo)
- Serkan Yildiz (srknyldz)
- Julien Sanchez (sumbobyboys)
- Guillermo Gisinger (t3chn0r)
- Markus Tacker (tacker)

View File

@ -263,6 +263,7 @@ class Table
* Renders table to output.
*
* Example:
* <code>
* +---------------+-----------------------+------------------+
* | ISBN | Title | Author |
* +---------------+-----------------------+------------------+
@ -270,6 +271,7 @@ class Table
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
* | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
* +---------------+-----------------------+------------------+
* </code>
*/
public function render()
{
@ -303,7 +305,7 @@ class Table
/**
* Renders horizontal header separator.
*
* Example: +-----+-----------+-------+
* Example: <code>+-----+-----------+-------+</code>
*/
private function renderRowSeparator()
{
@ -334,7 +336,7 @@ class Table
/**
* Renders table row.
*
* Example: | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
* Example: <code>| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |</code>
*
* @param array $row
* @param string $cellFormat

View File

@ -31,11 +31,6 @@ class TokenStream
*/
private $tokens = array();
/**
* @var bool
*/
private $frozen = false;
/**
* @var Token[]
*/
@ -49,7 +44,7 @@ class TokenStream
/**
* @var Token|null
*/
private $peeked = null;
private $peeked;
/**
* @var bool
@ -75,8 +70,6 @@ class TokenStream
*/
public function freeze()
{
$this->frozen = true;
return $this;
}

View File

@ -31,7 +31,6 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass implements Repe
{
private $graph;
private $currentDefinition;
private $repeatedPass;
private $onlyConstructorArguments;
private $lazy;
private $expressionLanguage;
@ -49,7 +48,7 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass implements Repe
*/
public function setRepeatedPass(RepeatedPass $repeatedPass)
{
$this->repeatedPass = $repeatedPass;
// no-op for BC
}
/**

View File

@ -23,7 +23,6 @@ use Symfony\Component\DependencyInjection\Reference;
*/
class InlineServiceDefinitionsPass extends AbstractRecursivePass implements RepeatablePassInterface
{
private $repeatedPass;
private $cloningIds = array();
private $inlinedServiceIds = array();
@ -32,7 +31,7 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
*/
public function setRepeatedPass(RepeatedPass $repeatedPass)
{
$this->repeatedPass = $repeatedPass;
// no-op for BC
}
/**

View File

@ -78,7 +78,7 @@ class ContainerAwareEventDispatcher extends EventDispatcher
$this->lazyLoad($eventName);
if (isset($this->listenerIds[$eventName])) {
foreach ($this->listenerIds[$eventName] as $i => list($serviceId, $method, $priority)) {
foreach ($this->listenerIds[$eventName] as $i => list($serviceId, $method)) {
$key = $serviceId.'.'.$method;
if (isset($this->listeners[$eventName][$key]) && $listener === array($this->listeners[$eventName][$key], $method)) {
unset($this->listeners[$eventName][$key]);

View File

@ -146,6 +146,16 @@ class ExpressionLanguageTest extends TestCase
$this->assertSame($expected, $result);
}
/**
* @expectedException \Symfony\Component\ExpressionLanguage\SyntaxError
* @expectedExceptionMessage Unexpected end of expression around position 6 for expression `node.`.
*/
public function testParseThrowsInsteadOfNotice()
{
$expressionLanguage = new ExpressionLanguage();
$expressionLanguage->parse('node.', array('node'));
}
public function shortCircuitProviderEvaluate()
{
$object = $this->getMockBuilder('stdClass')->setMethods(array('foo'))->getMock();

View File

@ -50,12 +50,12 @@ class TokenStream
*/
public function next()
{
++$this->position;
if (!isset($this->tokens[$this->position])) {
throw new SyntaxError('Unexpected end of expression', $this->current->cursor, $this->expression);
}
++$this->position;
$this->current = $this->tokens[$this->position];
}

View File

@ -151,7 +151,7 @@ class Store implements StoreInterface
return;
}
list($req, $headers) = $match;
$headers = $match[1];
if (file_exists($body = $this->getPath($headers['x-content-digest'][0]))) {
return $this->restoreResponse($headers, $body);
}

View File

@ -150,7 +150,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
$arguments = $event->getArguments();
// call controller
$response = call_user_func_array($controller, $arguments);
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {

View File

@ -119,7 +119,7 @@ abstract class AbstractPipes implements PipesInterface
$w = array($this->pipes[0]);
// let's have a look if something changed in streams
if (false === $n = @stream_select($r, $w, $e, 0, 0)) {
if (false === @stream_select($r, $w, $e, 0, 0)) {
return;
}

View File

@ -99,7 +99,7 @@ class UnixPipes extends AbstractPipes
unset($r[0]);
// let's have a look if something changed in streams
if (($r || $w) && false === $n = @stream_select($r, $w, $e, 0, $blocking ? Process::TIMEOUT_PRECISION * 1E6 : 0)) {
if (($r || $w) && false === @stream_select($r, $w, $e, 0, $blocking ? Process::TIMEOUT_PRECISION * 1E6 : 0)) {
// if a system call has been interrupted, forget about it, let's try again
// otherwise, an error occurred, let's reset pipes
if (!$this->hasSystemCallBeenInterrupted()) {