Skip to content

Commit 227f803

Browse files
Make this code compatible with PHP 7.3.
See https://externals.io/message/102147 for details.
1 parent 6cf5ca9 commit 227f803

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ParserTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ public function testParseWithMultipleChunks(): void
7575

7676
public function testParseWithRemovedLines(): void
7777
{
78-
$content = <<<A
78+
$content = <<<END
7979
diff --git a/Test.txt b/Test.txt
8080
index abcdefg..abcdefh 100644
8181
--- a/Test.txt
8282
+++ b/Test.txt
8383
@@ -49,9 +49,8 @@
8484
A
8585
-B
86-
A;
86+
END;
8787
$diffs = $this->parser->parse($content);
8888
$this->assertInternalType('array', $diffs);
8989
$this->assertContainsOnlyInstancesOf(Diff::class, $diffs);
@@ -118,7 +118,7 @@ public function testParseWithRemovedLines(): void
118118

119119
public function testParseDiffForMulitpleFiles(): void
120120
{
121-
$content = <<<A
121+
$content = <<<END
122122
diff --git a/Test.txt b/Test.txt
123123
index abcdefg..abcdefh 100644
124124
--- a/Test.txt
@@ -134,7 +134,7 @@ public function testParseDiffForMulitpleFiles(): void
134134
@@ -1,2 +1,3 @@
135135
A
136136
+B
137-
A;
137+
END;
138138
$diffs = $this->parser->parse($content);
139139
$this->assertCount(2, $diffs);
140140

0 commit comments

Comments
 (0)