Skip to content

Commit 1e6839f

Browse files
Merge branch '2.3' into 2.7
* 2.3: [travis] timeout the sigchild tests at 60s CS: Single line comments should use double slashes (//) and not hash (#). Do not use HttpKernel Extension when not needed bumped Symfony version to 2.3.37 updated VERSION for 2.3.36 update CONTRIBUTORS for 2.3.36 updated CHANGELOG for 2.3.36 use nowdoc instead of heredoc Conflicts: src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.php src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php src/Symfony/Bundle/TwigBundle/Command/LintCommand.php src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php src/Symfony/Component/Debug/ExceptionHandler.php src/Symfony/Component/HttpKernel/Kernel.php src/Symfony/Component/Routing/Generator/Dumper/PhpGeneratorDumper.php
2 parents a8f03d1 + f41077b commit 1e6839f

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Dumper/PhpDumper.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ private function addService($id, $definition)
590590

591591
$doc = '';
592592
if (ContainerInterface::SCOPE_PROTOTYPE !== $scope) {
593-
$doc .= <<<EOF
593+
$doc .= <<<'EOF'
594594
595595
*
596596
* This service is shared.
@@ -599,7 +599,7 @@ private function addService($id, $definition)
599599
}
600600

601601
if (!$definition->isPublic()) {
602-
$doc .= <<<EOF
602+
$doc .= <<<'EOF'
603603
604604
*
605605
* This service is private.
@@ -873,7 +873,7 @@ public function __construct()
873873
$code .= $this->addMethodMap();
874874
$code .= $this->addAliases();
875875

876-
$code .= <<<EOF
876+
$code .= <<<'EOF'
877877
}
878878

879879
EOF;
@@ -903,11 +903,11 @@ public function __construct()
903903
$code .= "\n \$this->parameters = \$this->getDefaultParameters();\n";
904904
}
905905

906-
$code .= <<<EOF
906+
$code .= <<<'EOF'
907907
908-
\$this->services =
909-
\$this->scopedServices =
910-
\$this->scopeStacks = array();
908+
$this->services =
909+
$this->scopedServices =
910+
$this->scopeStacks = array();
911911
EOF;
912912

913913
$code .= "\n";
@@ -922,7 +922,7 @@ public function __construct()
922922
$code .= $this->addMethodMap();
923923
$code .= $this->addAliases();
924924

925-
$code .= <<<EOF
925+
$code .= <<<'EOF'
926926
}
927927

928928
EOF;
@@ -1013,36 +1013,36 @@ private function addDefaultParametersMethod()
10131013

10141014
$code = '';
10151015
if ($this->container->isFrozen()) {
1016-
$code .= <<<EOF
1016+
$code .= <<<'EOF'
10171017
10181018
/**
10191019
* {@inheritdoc}
10201020
*/
1021-
public function getParameter(\$name)
1021+
public function getParameter($name)
10221022
{
1023-
\$name = strtolower(\$name);
1023+
$name = strtolower($name);
10241024
1025-
if (!(isset(\$this->parameters[\$name]) || array_key_exists(\$name, \$this->parameters))) {
1026-
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', \$name));
1025+
if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
1026+
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
10271027
}
10281028
1029-
return \$this->parameters[\$name];
1029+
return $this->parameters[$name];
10301030
}
10311031
10321032
/**
10331033
* {@inheritdoc}
10341034
*/
1035-
public function hasParameter(\$name)
1035+
public function hasParameter($name)
10361036
{
1037-
\$name = strtolower(\$name);
1037+
$name = strtolower($name);
10381038
1039-
return isset(\$this->parameters[\$name]) || array_key_exists(\$name, \$this->parameters);
1039+
return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters);
10401040
}
10411041
10421042
/**
10431043
* {@inheritdoc}
10441044
*/
1045-
public function setParameter(\$name, \$value)
1045+
public function setParameter($name, $value)
10461046
{
10471047
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
10481048
}
@@ -1052,11 +1052,11 @@ public function setParameter(\$name, \$value)
10521052
*/
10531053
public function getParameterBag()
10541054
{
1055-
if (null === \$this->parameterBag) {
1056-
\$this->parameterBag = new FrozenParameterBag(\$this->parameters);
1055+
if (null === $this->parameterBag) {
1056+
$this->parameterBag = new FrozenParameterBag($this->parameters);
10571057
}
10581058
1059-
return \$this->parameterBag;
1059+
return $this->parameterBag;
10601060
}
10611061

10621062
EOF;
@@ -1121,7 +1121,7 @@ private function exportParameters($parameters, $path = '', $indent = 12)
11211121
*/
11221122
private function endClass()
11231123
{
1124-
return <<<EOF
1124+
return <<<'EOF'
11251125
}
11261126

11271127
EOF;

0 commit comments

Comments
 (0)