Skip to content

Commit f5eb468

Browse files
Merge branch '2.7' into 2.8
* 2.7: [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 for 2.7 Do not use HttpKernel Extension when not needed bumped Symfony version to 2.7.9 updated VERSION for 2.7.8 updated CHANGELOG for 2.7.8 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 Revert "Revert "bug #17052 [2.7] Fixed flatten exception recursion with errors (GrahamCampbell)"" Revert "bug #17052 [2.7] Fixed flatten exception recursion with errors (GrahamCampbell)" use nowdoc instead of heredoc Conflicts: src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php src/Symfony/Component/HttpKernel/Kernel.php src/Symfony/Component/Security/Acl/Dbal/AclProvider.php src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php
2 parents c5086d1 + 1e6839f commit f5eb468

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
@@ -598,7 +598,7 @@ private function addService($id, $definition)
598598

599599
$doc = '';
600600
if ($definition->isShared() && ContainerInterface::SCOPE_PROTOTYPE !== $scope) {
601-
$doc .= <<<EOF
601+
$doc .= <<<'EOF'
602602
603603
*
604604
* This service is shared.
@@ -607,7 +607,7 @@ private function addService($id, $definition)
607607
}
608608

609609
if (!$definition->isPublic()) {
610-
$doc .= <<<EOF
610+
$doc .= <<<'EOF'
611611
612612
*
613613
* This service is private.
@@ -894,7 +894,7 @@ public function __construct()
894894
$code .= $this->addMethodMap();
895895
$code .= $this->addAliases();
896896

897-
$code .= <<<EOF
897+
$code .= <<<'EOF'
898898
}
899899

900900
EOF;
@@ -924,11 +924,11 @@ public function __construct()
924924
$code .= "\n \$this->parameters = \$this->getDefaultParameters();\n";
925925
}
926926

927-
$code .= <<<EOF
927+
$code .= <<<'EOF'
928928
929-
\$this->services =
930-
\$this->scopedServices =
931-
\$this->scopeStacks = array();
929+
$this->services =
930+
$this->scopedServices =
931+
$this->scopeStacks = array();
932932
EOF;
933933

934934
$code .= "\n";
@@ -943,7 +943,7 @@ public function __construct()
943943
$code .= $this->addMethodMap();
944944
$code .= $this->addAliases();
945945

946-
$code .= <<<EOF
946+
$code .= <<<'EOF'
947947
}
948948

949949
EOF;
@@ -1034,36 +1034,36 @@ private function addDefaultParametersMethod()
10341034

10351035
$code = '';
10361036
if ($this->container->isFrozen()) {
1037-
$code .= <<<EOF
1037+
$code .= <<<'EOF'
10381038
10391039
/**
10401040
* {@inheritdoc}
10411041
*/
1042-
public function getParameter(\$name)
1042+
public function getParameter($name)
10431043
{
1044-
\$name = strtolower(\$name);
1044+
$name = strtolower($name);
10451045
1046-
if (!(isset(\$this->parameters[\$name]) || array_key_exists(\$name, \$this->parameters))) {
1047-
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', \$name));
1046+
if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
1047+
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
10481048
}
10491049
1050-
return \$this->parameters[\$name];
1050+
return $this->parameters[$name];
10511051
}
10521052
10531053
/**
10541054
* {@inheritdoc}
10551055
*/
1056-
public function hasParameter(\$name)
1056+
public function hasParameter($name)
10571057
{
1058-
\$name = strtolower(\$name);
1058+
$name = strtolower($name);
10591059
1060-
return isset(\$this->parameters[\$name]) || array_key_exists(\$name, \$this->parameters);
1060+
return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters);
10611061
}
10621062
10631063
/**
10641064
* {@inheritdoc}
10651065
*/
1066-
public function setParameter(\$name, \$value)
1066+
public function setParameter($name, $value)
10671067
{
10681068
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
10691069
}
@@ -1073,11 +1073,11 @@ public function setParameter(\$name, \$value)
10731073
*/
10741074
public function getParameterBag()
10751075
{
1076-
if (null === \$this->parameterBag) {
1077-
\$this->parameterBag = new FrozenParameterBag(\$this->parameters);
1076+
if (null === $this->parameterBag) {
1077+
$this->parameterBag = new FrozenParameterBag($this->parameters);
10781078
}
10791079
1080-
return \$this->parameterBag;
1080+
return $this->parameterBag;
10811081
}
10821082

10831083
EOF;
@@ -1142,7 +1142,7 @@ private function exportParameters($parameters, $path = '', $indent = 12)
11421142
*/
11431143
private function endClass()
11441144
{
1145-
return <<<EOF
1145+
return <<<'EOF'
11461146
}
11471147

11481148
EOF;

0 commit comments

Comments
 (0)