Skip to content

Commit 6da71c7

Browse files
committed
tests: Don't use ReflectionMethod::setAccessible(), it's a no-op now
Bug: T406744 Change-Id: I2dadba34882ea45dad76e243dbbfc6e47e0de50c
1 parent baa9441 commit 6da71c7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/Sanitizer/RuleSanitizerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ protected function getSanitizer( $options = [] ) {
4747
}
4848
if ( $method ) {
4949
$rm = new ReflectionMethod( $san, $method );
50-
$rm->setAccessible( true );
5150
$san->method( 'doSanitize' )->willReturnCallback( static function ( $rule ) use ( $rm, $san, $arg ) {
5251
$ret = clone $rule;
5352
// @phan-suppress-next-line PhanPossiblyUndeclaredVariable $arg set when reaching this code

0 commit comments

Comments
 (0)