Skip to content

Commit 92a4e05

Browse files
Merge branch '2.3' into 2.6
* 2.3: [HttpKernel] Embed the original exception as previous to bounced exceptions [Enhancement] netbeans - force interactive shell when limited detection [StringUtil] Fixed singularification of 'movies' Fix some phpdocs for Twig extensions & templating helpers Use specialized config methods instead of the generic ifTrue() method [DoctrineBridge] Add missing variable declaration in testcase Conflicts: src/Symfony/Component/Console/Application.php
2 parents ef03f28 + 852e559 commit 92a4e05

File tree

7 files changed

+8
-23
lines changed

7 files changed

+8
-23
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ public function getConfigTreeBuilder()
7979
->booleanNode('test')->end()
8080
->scalarNode('default_locale')->defaultValue('en')->end()
8181
->arrayNode('trusted_hosts')
82-
->beforeNormalization()
83-
->ifTrue(function ($v) { return is_string($v); })
84-
->then(function ($v) { return array($v); })
85-
->end()
82+
->beforeNormalization()->ifString()->then(function ($v) { return array($v); })->end()
8683
->prototype('scalar')->end()
8784
->end()
8885
->end()
@@ -348,7 +345,7 @@ private function addTemplatingSection(ArrayNodeDefinition $rootNode)
348345
->addDefaultChildrenIfNoneSet()
349346
->prototype('scalar')->defaultValue('FrameworkBundle:Form')->end()
350347
->validate()
351-
->ifTrue(function ($v) {return !in_array('FrameworkBundle:Form', $v); })
348+
->ifNotInArray(array('FrameworkBundle:Form'))
352349
->then(function ($v) {
353350
return array_merge(array('FrameworkBundle:Form'), $v);
354351
})

Templating/Helper/ActionsHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ public function controller($controller, $attributes = array(), $query = array())
5858
}
5959

6060
/**
61-
* Returns the canonical name of this helper.
62-
*
63-
* @return string The canonical name
61+
* {@inheritdoc}
6462
*/
6563
public function getName()
6664
{

Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ public function formatFileFromText($text)
205205
}
206206

207207
/**
208-
* Returns the canonical name of this helper.
209-
*
210-
* @return string The canonical name
208+
* {@inheritdoc}
211209
*/
212210
public function getName()
213211
{

Templating/Helper/RequestHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ private function getRequest()
8282
}
8383

8484
/**
85-
* Returns the canonical name of this helper.
86-
*
87-
* @return string The canonical name
85+
* {@inheritdoc}
8886
*/
8987
public function getName()
9088
{

Templating/Helper/RouterHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ public function generate($name, $parameters = array(), $referenceType = UrlGener
5050
}
5151

5252
/**
53-
* Returns the canonical name of this helper.
54-
*
55-
* @return string The canonical name
53+
* {@inheritdoc}
5654
*/
5755
public function getName()
5856
{

Templating/Helper/SessionHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ private function getSession()
8585
}
8686

8787
/**
88-
* Returns the canonical name of this helper.
89-
*
90-
* @return string The canonical name
88+
* {@inheritdoc}
9189
*/
9290
public function getName()
9391
{

Templating/Helper/TranslatorHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ public function transChoice($id, $number, array $parameters = array(), $domain =
5050
}
5151

5252
/**
53-
* Returns the canonical name of this helper.
54-
*
55-
* @return string The canonical name
53+
* {@inheritdoc}
5654
*/
5755
public function getName()
5856
{

0 commit comments

Comments
 (0)