Repository navigation
Commit 65b18f9
committed
Tests: Stop passing objects to static methods through Reflection.
PHP 8.6 has deprecated passing an object to `ReflectionMethod::invoke()` and `ReflectionMethodL::invokeArgs()` when the target method is static.
This addresses this within two PHPUnit-related files.
Props westonruter.
Fixes #66457.
git-svn-id: https://develop.svn.wordpress.org/trunk@65248 602fd350-edb4-49c9-b593-d223f7449a821 parent 658bcc5 commit 65b18f9
2 files changed
Lines changed: 3 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8515 | 8515 | | |
8516 | 8516 | | |
8517 | 8517 | | |
8518 | | - | |
8519 | | - | |
8520 | | - | |
8521 | | - | |
8522 | | - | |
8523 | | - | |
8524 | | - | |
8525 | | - | |
8526 | | - | |
8527 | | - | |
8528 | | - | |
8529 | | - | |
| 8518 | + | |
8530 | 8519 | | |
8531 | 8520 | | |
8532 | 8521 | | |
| |||
0 commit comments