Repository navigation
Commit 825228c
committed
Tests: Avoid ReflectionMethod::setAccessible() on PHP 8.1+ in post list table tests.
setAccessible() is redundant on PHP 8.1+ and deprecated in PHP 8.5+, which causes PHPUnit deprecation errors when run with convertDeprecationsToExceptions enabled. Guard the call with PHP_VERSION_ID < 80100 to match core conventions.
Fixes #66244.1 parent 1dd9337 commit 825228c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
638 | 640 | | |
639 | 641 | | |
640 | 642 | | |
| |||
0 commit comments