From 3884da4bdcd93d31b215599194f8de33cc146410 Mon Sep 17 00:00:00 2001 From: Arshid Date: Sun, 28 Sep 2025 09:01:09 +0530 Subject: [PATCH] php85 --- tests/PdoWrapperTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/PdoWrapperTest.php b/tests/PdoWrapperTest.php index 39d2b60..d2eeb45 100644 --- a/tests/PdoWrapperTest.php +++ b/tests/PdoWrapperTest.php @@ -128,7 +128,9 @@ class PdoWrapperTest extends TestCase // Testing protected method using reflection $reflection = new ReflectionClass($this->pdo_wrapper); $method = $reflection->getMethod('pullDataFromDsn'); - $method->setAccessible(true); + if (PHP_VERSION_ID < 80100) { + $method->setAccessible(true); + } // Test SQLite DSN $sqliteDsn = 'sqlite::memory:'; @@ -205,7 +207,9 @@ class PdoWrapperTest extends TestCase // Verify metrics are reset after logging $reflection = new ReflectionClass($trackingPdo); $property = $reflection->getProperty('queryMetrics'); - $property->setAccessible(true); + if (PHP_VERSION_ID < 80100) { + $property->setAccessible(true); + } $this->assertCount(0, $property->getValue($trackingPdo)); } }