ci: Add PHP version 8.5 to CI workflow

This commit is contained in:
Christopher Georg
2025-11-25 20:36:46 +01:00
parent 83694054ad
commit bdfbc337f3
+4 -1
View File
@@ -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);