Skip to content

Commit 01c50eb

Browse files
Merge branch '2.8' into 3.3
* 2.8: fix merge Fix 7.2 compat layer Fix PHP 7.2 support [HttpFoundation] Add missing session.lazy_write config option [HttpFoundation] Combine Cache-Control headers [Form] fix parsing invalid floating point numbers Escape command usage when displaying it in the text descriptor Use for=ID on radio/checkbox label.
2 parents 9b6b3c0 + e71c4f7 commit 01c50eb

File tree

24 files changed

+170
-35
lines changed

24 files changed

+170
-35
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ matrix:
2626
- php: 5.5
2727
- php: 5.6
2828
- php: 7.0
29-
env: deps=high
3029
- php: 7.1
30+
env: deps=high
31+
- php: 7.2
3132
env: deps=low
3233
fast_finish: true
3334

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,14 @@
186186
{% endblock %}
187187

188188
{% block checkbox_label -%}
189+
{%- set label_attr = label_attr|merge({'for': id}) -%}
190+
189191
{{- block('checkbox_radio_label') -}}
190192
{%- endblock checkbox_label %}
191193

192194
{% block radio_label -%}
195+
{%- set label_attr = label_attr|merge({'for': id}) -%}
196+
193197
{{- block('checkbox_radio_label') -}}
194198
{%- endblock radio_label %}
195199

src/Symfony/Bridge/Twig/Tests/AppVariableTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function testEnvironment()
4545
$this->assertEquals('dev', $this->appVariable->getEnvironment());
4646
}
4747

48+
/**
49+
* @runInSeparateProcess
50+
*/
4851
public function testGetSession()
4952
{
5053
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock();

src/Symfony/Bridge/Twig/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"symfony/asset": "~2.8|~3.0",
2525
"symfony/finder": "~2.8|~3.0",
2626
"symfony/form": "^3.2.10|^3.3.3",
27+
"symfony/http-foundation": "^3.3.11",
2728
"symfony/http-kernel": "~3.2",
2829
"symfony/polyfill-intl-icu": "~1.0",
2930
"symfony/routing": "~2.8|~3.0",

src/Symfony/Bundle/FrameworkBundle/Tests/Command/CacheClearCommand/CacheClearCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testCacheIsFreshAfterCacheClearedWithWarmup()
6767
$finder = new Finder();
6868
$metaFiles = $finder->files()->in($this->kernel->getCacheDir())->name('*.php.meta');
6969
// simply check that cache is warmed up
70-
$this->assertGreaterThanOrEqual(1, count($metaFiles));
70+
$this->assertNotEmpty($metaFiles);
7171
$configCacheFactory = new ConfigCacheFactory(true);
7272

7373
foreach ($metaFiles as $file) {

src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ public function testRedirectToRoute()
373373
$this->assertSame(302, $response->getStatusCode());
374374
}
375375

376+
/**
377+
* @runInSeparateProcess
378+
*/
376379
public function testAddFlash()
377380
{
378381
$flashBag = new FlashBag();

src/Symfony/Bundle/FrameworkBundle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"symfony/dependency-injection": "~3.3",
2424
"symfony/config": "~3.3",
2525
"symfony/event-dispatcher": "^3.3.1",
26-
"symfony/http-foundation": "~3.3",
26+
"symfony/http-foundation": "^3.3.11",
2727
"symfony/http-kernel": "~3.3",
2828
"symfony/polyfill-mbstring": "~1.0",
2929
"symfony/filesystem": "~2.8|~3.0",

src/Symfony/Component/Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected function describeCommand(Command $command, array $options = array())
143143
$this->writeText('<comment>Usage:</comment>', $options);
144144
foreach (array_merge(array($command->getSynopsis(true)), $command->getAliases(), $command->getUsages()) as $usage) {
145145
$this->writeText("\n");
146-
$this->writeText(' '.$usage, $options);
146+
$this->writeText(' '.OutputFormatter::escape($usage), $options);
147147
}
148148
$this->writeText("\n");
149149

src/Symfony/Component/Console/Tests/Fixtures/command_2.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<comment>Usage:</comment>
2-
descriptor:command2 [options] [--] <argument_name>
3-
descriptor:command2 -o|--option_name <argument_name>
4-
descriptor:command2 <argument_name>
2+
descriptor:command2 [options] [--] \<argument_name>
3+
descriptor:command2 -o|--option_name \<argument_name>
4+
descriptor:command2 \<argument_name>
55

66
<comment>Arguments:</comment>
77
<info>argument_name</info>

src/Symfony/Component/Console/Tests/Fixtures/command_mbstring.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<comment>Usage:</comment>
2-
descriptor:åèä [options] [--] <argument_åèä>
3-
descriptor:åèä -o|--option_name <argument_name>
4-
descriptor:åèä <argument_name>
2+
descriptor:åèä [options] [--] \<argument_åèä>
3+
descriptor:åèä -o|--option_name \<argument_name>
4+
descriptor:åèä \<argument_name>
55

66
<comment>Arguments:</comment>
77
<info>argument_åèä</info>

0 commit comments

Comments
 (0)