Completed
Push — master ( 336028...b2f26d )
by Nikita
04:22
created
lib/PhpParser/Parser/Php5.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2818,7 +2818,10 @@
 block discarded – undo
2818 2818
     }
2819 2819
 
2820 2820
     protected function reduceRule463() {
2821
-         foreach ($this->semStack[$this->stackPos-(3-2)] as &$s) { if (is_string($s)) { $s = Node\Scalar\String_::parseEscapeSequences($s, null, false); } } $s = preg_replace('~(\r\n|\n|\r)\z~', '', $s); if ('' === $s) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2821
+         foreach ($this->semStack[$this->stackPos-(3-2)] as &$s) { if (is_string($s)) { $s = Node\Scalar\String_::parseEscapeSequences($s, null, false); } } $s = preg_replace('~(\r\n|\n|\r)\z~', '', $s); if ('' === $s) {
2822
+             array_pop($this->semStack[$this->stackPos-(3-2)]);
2823
+         }
2824
+         ; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2822 2825
     }
2823 2826
 
2824 2827
     protected function reduceRule464() {
Please login to merge, or discard this patch.
lib/PhpParser/Parser/Php7.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2406,7 +2406,10 @@
 block discarded – undo
2406 2406
     }
2407 2407
 
2408 2408
     protected function reduceRule398() {
2409
-         foreach ($this->semStack[$this->stackPos-(3-2)] as &$s) { if (is_string($s)) { $s = Node\Scalar\String_::parseEscapeSequences($s, null, true); } } $s = preg_replace('~(\r\n|\n|\r)\z~', '', $s); if ('' === $s) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2409
+         foreach ($this->semStack[$this->stackPos-(3-2)] as &$s) { if (is_string($s)) { $s = Node\Scalar\String_::parseEscapeSequences($s, null, true); } } $s = preg_replace('~(\r\n|\n|\r)\z~', '', $s); if ('' === $s) {
2410
+             array_pop($this->semStack[$this->stackPos-(3-2)]);
2411
+         }
2412
+         ; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2410 2413
     }
2411 2414
 
2412 2415
     protected function reduceRule399() {
Please login to merge, or discard this patch.