Commit 186634a
phpunit: Remove unnecessary uses of
Back when we still supported PHP <=7.1, we had to add these in a lot of
places to work around the fact that PHPUnit 8 started declaring a `void`
return type on `setUp()`, `tearDown()`, and so on, which 7.1 and earler
don't support.
But we've since dropped support for PHP <7.2, so we can swtich back to
the normal functions. It's more straightforward to do that than to start
adding attributes (`#[Before]` and such) for PHPUnit 11+ where the
annotations are deprecated.
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/14085626545
Upstream-Ref: Automattic/jetpack@617a716@before, @after, etc (#42706)1 parent 78d7736 commit 186634a
File tree
5 files changed
+17
-17
lines changed- vendor
- automattic/jetpack-device-detection
- composer
5 files changed
+17
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments