Update tests/Whoops/TestCase.php

Co-authored-by: Denis Sokolov <denis@sokolov.cc>
This commit is contained in:
chris
2025-11-25 22:05:04 +01:00
committed by GitHub
parent bdfbc337f3
commit 14433ed475
+1 -1
View File
@@ -71,7 +71,7 @@ class TestCase extends BaseTestCase
public static function callPrivateMethod($class_or_object, $method, $args = []) public static function callPrivateMethod($class_or_object, $method, $args = [])
{ {
$ref = new \ReflectionMethod($class_or_object, $method); $ref = new \ReflectionMethod($class_or_object, $method);
// setAccessible does not do anything starting with 8.1, throws starting with 8.5
if (PHP_VERSION_ID < 80100) { if (PHP_VERSION_ID < 80100) {
$ref->setAccessible(true); $ref->setAccessible(true);
} }