Skip to content

Commit fe26753

Browse files
committed
Merge branch '2.5'
* 2.5: (25 commits) [Bridge][Twig] Replace deprecated features Yaml component change in 2.5 [HttpFoundation] fix switch statement [serializer] fixed whitespace issue when decoding xml [Doctrine Bridge] fix DBAL session handler according to PdoSessionHandler #10862 loadClassMetadata vs loadValidatorMetadata: revert default config fixed previous merge Added phpdoc for Cache-Control directives methods [Console] OutputFormatter Unset Bold has wrong id [Debug] fix debug handlers config [Serializer] fixed bc-break with cdata-section nodes Remove undefined variable $e [Debug] fix wrong case mismatch exception bumped Symfony version to 2.5.1 bumped Symfony version to 2.4.7 bumped Symfony version to 2.3.17 Fix a parameter name in a test updated VERSION for 2.5.0 updated CHANGELOG for 2.5.0 updated VERSION for 2.4.6 ... Conflicts: src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php src/Symfony/Component/HttpKernel/Kernel.php
2 parents 402f7d8 + 5e8b3e4 commit fe26753

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Formatter/OutputFormatterStyle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
4141
'white' => array('set' => 47, 'unset' => 49)
4242
);
4343
private static $availableOptions = array(
44-
'bold' => array('set' => 1, 'unset' => 21),
44+
'bold' => array('set' => 1, 'unset' => 22),
4545
'underscore' => array('set' => 4, 'unset' => 24),
4646
'blink' => array('set' => 5, 'unset' => 25),
4747
'reverse' => array('set' => 7, 'unset' => 27),
@@ -202,7 +202,7 @@ public function setOptions(array $options)
202202
public function apply($text)
203203
{
204204
$setCodes = array();
205-
$unsetCode = array();
205+
$unsetCodes = array();
206206

207207
if (null !== $this->foreground) {
208208
$setCodes[] = $this->foreground['set'];

Tests/Formatter/OutputFormatterStyleTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class OutputFormatterStyleTest extends \PHPUnit_Framework_TestCase
1818
public function testConstructor()
1919
{
2020
$style = new OutputFormatterStyle('green', 'black', array('bold', 'underscore'));
21-
$this->assertEquals("\033[32;40;1;4mfoo\033[39;49;21;24m", $style->apply('foo'));
21+
$this->assertEquals("\033[32;40;1;4mfoo\033[39;49;22;24m", $style->apply('foo'));
2222

2323
$style = new OutputFormatterStyle('red', null, array('blink'));
2424
$this->assertEquals("\033[31;5mfoo\033[39;25m", $style->apply('foo'));
@@ -63,16 +63,16 @@ public function testOptions()
6363
$this->assertEquals("\033[7;8mfoo\033[27;28m", $style->apply('foo'));
6464

6565
$style->setOption('bold');
66-
$this->assertEquals("\033[7;8;1mfoo\033[27;28;21m", $style->apply('foo'));
66+
$this->assertEquals("\033[7;8;1mfoo\033[27;28;22m", $style->apply('foo'));
6767

6868
$style->unsetOption('reverse');
69-
$this->assertEquals("\033[8;1mfoo\033[28;21m", $style->apply('foo'));
69+
$this->assertEquals("\033[8;1mfoo\033[28;22m", $style->apply('foo'));
7070

7171
$style->setOption('bold');
72-
$this->assertEquals("\033[8;1mfoo\033[28;21m", $style->apply('foo'));
72+
$this->assertEquals("\033[8;1mfoo\033[28;22m", $style->apply('foo'));
7373

7474
$style->setOptions(array('bold'));
75-
$this->assertEquals("\033[1mfoo\033[21m", $style->apply('foo'));
75+
$this->assertEquals("\033[1mfoo\033[22m", $style->apply('foo'));
7676

7777
try {
7878
$style->setOption('foo');

0 commit comments

Comments
 (0)