Skip to content

Commit 3ac40ce

Browse files
committed
Removed deprecated ReflectionMethod::setAccessible() calls for PHP 8.5.
1 parent fceb675 commit 3ac40ce

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/CurlSenderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ private static function getPrivateProperty(object $object, string $property): mi
6666
{
6767
$reflection = new ReflectionClass($object);
6868
$property = $reflection->getProperty($property);
69-
$property->setAccessible(true);
7069
return $property->getValue($object);
7170
}
7271
}

tests/RollbarTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ public function testLogExtraData(): void
109109
$logger = Rollbar::logger();
110110
$reflection = new \ReflectionClass(get_class($logger));
111111
$method = $reflection->getMethod('getPayload');
112-
$method->setAccessible(true);
113-
112+
114113
$payload = $method->invokeArgs(
115114
$logger,
116115
array(

0 commit comments

Comments
 (0)