Skip to content

Commit 54cb016

Browse files
committed
74
1 parent bcbf827 commit 54cb016

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

tests/php74-compatibility.patch

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
2-
index d1e1fad..ed67841 100644
2+
index 087995d..5284a56 100644
33
--- a/tests/expected_report.txt
44
+++ b/tests/expected_report.txt
5-
@@ -17,26 +17,23 @@
5+
@@ -17,26 +17,23 @@ tests/input/constants-var.php 6 0
66
tests/input/ControlStructures.php 28 0
77
tests/input/doc-comment-spacing.php 11 0
88
tests/input/duplicate-assignment-variable.php 1 0
99
-tests/input/EarlyReturn.php 7 0
1010
-tests/input/example-class.php 47 0
11-
-tests/input/ExampleBackedEnum.php 3 0
11+
-tests/input/ExampleBackedEnum.php 5 0
1212
-tests/input/Exceptions.php 1 0
1313
+tests/input/EarlyReturn.php 6 0
1414
+tests/input/example-class.php 44 0
@@ -35,7 +35,7 @@ index d1e1fad..ed67841 100644
3535
tests/input/semicolon_spacing.php 3 0
3636
tests/input/single-line-array-spacing.php 5 0
3737
tests/input/spread-operator.php 6 0
38-
@@ -46,17 +43,17 @@
38+
@@ -46,17 +43,17 @@ tests/input/strings.php 3 0
3939
tests/input/superfluous-naming.php 11 0
4040
tests/input/test-case.php 8 0
4141
tests/input/trailing_comma_on_array.php 1 0
@@ -50,10 +50,10 @@ index d1e1fad..ed67841 100644
5050
-tests/input/UselessConditions.php 21 0
5151
+tests/input/UselessConditions.php 20 0
5252
----------------------------------------------------------------------
53-
-A TOTAL OF 462 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES
53+
-A TOTAL OF 464 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES
5454
+A TOTAL OF 426 ERRORS AND 2 WARNINGS WERE FOUND IN 47 FILES
5555
----------------------------------------------------------------------
56-
-PHPCBF CAN FIX 378 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
56+
-PHPCBF CAN FIX 380 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
5757
+PHPCBF CAN FIX 342 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
5858
----------------------------------------------------------------------
5959

@@ -85,16 +85,23 @@ index fc734db..caf1dbb 100644
8585
foreach ($items as $item) {
8686
if (! $item->isItem()) {
8787
diff --git a/tests/fixed/ExampleBackedEnum.php b/tests/fixed/ExampleBackedEnum.php
88-
index cc38c54..fe54eb9 100644
88+
index fd701eb..fe54eb9 100644
8989
--- a/tests/fixed/ExampleBackedEnum.php
9090
+++ b/tests/fixed/ExampleBackedEnum.php
91-
@@ -3,7 +3,3 @@
91+
@@ -3,14 +3,3 @@
9292
declare(strict_types=1);
9393

9494
namespace ExampleBackedEnum;
9595
-
9696
-enum ExampleBackedEnum: int
9797
-{
98+
- case FOO = 0;
99+
- case BAR = 1;
100+
-
101+
- case BAZ = 2;
102+
-
103+
- /** Brevis, primus coordinataes foris promissio de varius, barbatus heuretes. */
104+
- case BAM = 1234;
98105
-}
99106
diff --git a/tests/fixed/Exceptions.php b/tests/fixed/Exceptions.php
100107
index db7408b..9b146c6 100644
@@ -355,16 +362,25 @@ index 73944e3..a0e0b2e 100644
355362
echo 5;
356363
}
357364
diff --git a/tests/input/ExampleBackedEnum.php b/tests/input/ExampleBackedEnum.php
358-
index 0c47286..fe54eb9 100644
365+
index 3b09f47..fe54eb9 100644
359366
--- a/tests/input/ExampleBackedEnum.php
360367
+++ b/tests/input/ExampleBackedEnum.php
361-
@@ -3,7 +3,3 @@
368+
@@ -3,16 +3,3 @@
362369
declare(strict_types=1);
363370

364371
namespace ExampleBackedEnum;
365372
-
366373
-enum ExampleBackedEnum : int
367374
-{
375+
- case FOO = 0;
376+
- case BAR = 1;
377+
-
378+
-
379+
- case BAZ = 2;
380+
-
381+
-
382+
- /** Brevis, primus coordinataes foris promissio de varius, barbatus heuretes. */
383+
- case BAM = 1234;
368384
-}
369385
diff --git a/tests/input/Exceptions.php b/tests/input/Exceptions.php
370386
index 3aaa30f..9b146c6 100644

0 commit comments

Comments
 (0)