Skip to content

Commit 36cea45

Browse files
committed
[DI] Fix EOL replacement
1 parent 8980058 commit 36cea45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function dump(array $options = array())
218218

219219
if ($this->addGetService) {
220220
$code = preg_replace(
221-
"/(\n\n public function __construct.+?\\{\n)/s",
221+
"/(\r?\n\r?\n public function __construct.+?\\{\r?\n)/s",
222222
"\n private \$getService;$1 \$this->getService = \\Closure::fromCallable(array(\$this, 'getService'));\n",
223223
$code,
224224
1

0 commit comments

Comments
 (0)