bug #29064 [DI] Fix EOL replacement (ro0NL)
This PR was merged into the 4.2-dev branch.
Discussion
----------
[DI] Fix EOL replacement
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | #29063
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
<!--
Write a short README entry for your feature/bugfix here (replace this comment block.)
This will help people understand your PR and can be used as a start of the Doc PR.
Additionally:
- Bug fixes must be submitted against the lowest branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the master branch.
-->
Commits
-------
52f15f75a5
[DI] Fix EOL replacement
This commit is contained in:
commit
08fb12b6f3
@ -218,7 +218,7 @@ class PhpDumper extends Dumper
|
||||
|
||||
if ($this->addGetService) {
|
||||
$code = preg_replace(
|
||||
"/(\n\n public function __construct.+?\\{\n)/s",
|
||||
"/(\r?\n\r?\n public function __construct.+?\\{\r?\n)/s",
|
||||
"\n private \$getService;$1 \$this->getService = \\Closure::fromCallable(array(\$this, 'getService'));\n",
|
||||
$code,
|
||||
1
|
||||
|
Reference in New Issue
Block a user