Commit 999d30e
committed
Downgrade code to PHP 8.1 for wordpress.org
The wordpress.org subversion pre-commit hook
is running PHP 8.1 and doesn't understand PHP 8.2
syntax. I don't want to be stuck on outdated
(and possibly insecure) libraries, so we run
rector to downgrade code to PHP 8.1 just for
wordpress.org.
This doesn't really guarantee PHP 8.1
compatibility, and we don't test that, so retain
the minimum 8.2 requirement. This is purely to
pass the wordpress.org pre-commit hook.
Downgrading the entire vendor dir is very slow,
but it is what it is.1 parent 428eaf1 commit 999d30e
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments