minor #22663 [DI] Fix PhpDumper blank lines around namespace (ogizanagi)
This PR was merged into the 2.7 branch. Discussion ---------- [DI] Fix PhpDumper blank lines around namespace | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A219bce9916
tries to fix CS in an expected PhpDumper output, which actually shows the PhpDumper does not create proper blank lines around the namespace. That's why tests are failing on https://github.com/symfony/symfony/pull/22660. Commits -------c9f6c1680f
[DI] Fix PhpDumper blank lines around namespace
This commit is contained in:
commit
62cb443770
@ -827,7 +827,7 @@ EOF;
|
|||||||
private function startClass($class, $baseClass, $namespace)
|
private function startClass($class, $baseClass, $namespace)
|
||||||
{
|
{
|
||||||
$bagClass = $this->container->isFrozen() ? 'use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;' : 'use Symfony\Component\DependencyInjection\ParameterBag\\ParameterBag;';
|
$bagClass = $this->container->isFrozen() ? 'use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;' : 'use Symfony\Component\DependencyInjection\ParameterBag\\ParameterBag;';
|
||||||
$namespaceLine = $namespace ? "namespace $namespace;\n" : '';
|
$namespaceLine = $namespace ? "\nnamespace $namespace;\n" : '';
|
||||||
|
|
||||||
return <<<EOF
|
return <<<EOF
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user