mirror of
https://github.com/filp/whoops.git
synced 2026-08-17 14:50:56 +00:00
Update tests/Whoops/TestCase.php
Co-authored-by: Denis Sokolov <denis@sokolov.cc>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user