Commit 4715329
committed
Allow installing under PHP 8
1. Allow PHPUnit 9 (needed for PHP 8)
2. Shim deprecated libxml functions
Make the call to libxml_disable_entity_loader conditional. This
function has been deprecated in PHP 8.0 and the new default is
equivalent to calling that function with `true`.
https://php.watch/versions/8.0/libxml_disable_entity_loader-deprecation
Note: there were two instances of exactly the same XML-parsing anonymous
function. I've traced this duplication back to 2015 when the functions
were one line long and explicitness might have been better than
deduplication. Over the years these functions have been growing together
and I see no obvious reason why two copies should be maintained.1 parent 55a46cc commit 4715329
2 files changed
Lines changed: 21 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 78 | + | |
92 | 79 | | |
93 | | - | |
94 | | - | |
| 80 | + | |
| 81 | + | |
95 | 82 | | |
96 | 83 | | |
97 | 84 | | |
| |||
781 | 768 | | |
782 | 769 | | |
783 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
784 | 784 | | |
0 commit comments