8000 Merge branch '2.1' into 2.2 · symfony/symfony@9a7c567 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a7c567

Browse files
committed
Merge branch '2.1' into 2.2
* 2.1: [HttpFoundation] Fixed copy pasted comment from FlashBag in AttributeBag [FrameworkBundle] fixed the discovery of the PHPUnit configuration file when using aggregate options like in -vc app/ (closes #7562) [WebProfilerBundle] removed next pointer class in a template
2 parents 3c5ee55 + 7221d25 commit 9a7c567

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ protected static function getPhpUnitXmlDir()
8484
}
8585

8686
/**
87-
* Finds the value of configuration flag from cli
87+
* Finds the value of the CLI configuration option.
8888
*
8989
* PHPUnit will use the last configuration argument on the command line, so this only returns
90-
* the last configuration argument
90+
* the last configuration argument.
9191
*
92-
* @return string The value of the phpunit cli configuration option
92+
* @return string The value of the PHPUnit cli configuration option
9393
*/
9494
private static function getPhpUnitCliConfigArgument()
9595
{
9696
$dir = null;
9797
$reversedArgs = array_reverse($_SERVER['argv']);
9898
foreach ($reversedArgs as $argIndex => $testArg) {
99-
if ($testArg === '-c' || $testArg === '--configuration') {
99+
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
100100
$dir = realpath($reversedArgs[$argIndex - 1]);
101101
break;
102102
} elseif (strpos($testArg, '--configuration=') === 0) {

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{ collector.controller.method }}
1010
</span>
1111
{% else %}
12-
<span class="sf-toolbar-info-class sf-toolbar-info-with-next-pointer">{{ collector.controller }}</span>
12+
<span class="sf-toolbar-info-class">{{ collector.controller }}</span>
1313
{% endif %}
1414
{% endset %}
1515
{% set request_status_code_color = (400 > collector.statuscode) ? ((200 == collector.statuscode) ? 'green' : 'yellow') : 'red'%}

src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AttributeBag implements AttributeBagInterface, \IteratorAggregate, \Counta
3131
/**
3232
* Constructor.
3333
*
34-
* @param string $storageKey The key used to store flashes in the session.
34+
* @param string $storageKey The key used to store attributes in the session.
3535
*/
3636
public function __construct($storageKey = '_sf2_attributes')
3737
{

0 commit comments

Comments
 (0)
0