mirror of
https://github.com/filp/whoops.git
synced 2026-09-01 13:08:02 +00:00
ci: Add PHP version 8.5 to CI workflow
This commit is contained in:
@@ -71,7 +71,10 @@ class TestCase extends BaseTestCase
|
||||
public static function callPrivateMethod($class_or_object, $method, $args = [])
|
||||
{
|
||||
$ref = new \ReflectionMethod($class_or_object, $method);
|
||||
$ref->setAccessible(true);
|
||||
|
||||
if (PHP_VERSION_ID < 80100) {
|
||||
$ref->setAccessible(true);
|
||||
}
|
||||
$object = is_object($class_or_object) ? $class_or_object : null;
|
||||
|
||||
return $ref->invokeArgs($object, $args);
|
||||
|
||||
Reference in New Issue
Block a user