File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,9 @@ public function testPullDataFromDsn(): void
128128 // Testing protected method using reflection
129129 $ reflection = new ReflectionClass ($ this ->pdo_wrapper );
130130 $ method = $ reflection ->getMethod ('pullDataFromDsn ' );
131- $ method ->setAccessible (true );
131+ if (PHP_VERSION_ID < 80100 ) {
132+ $ method ->setAccessible (true );
133+ }
132134
133135 // Test SQLite DSN
134136 $ sqliteDsn = 'sqlite::memory: ' ;
@@ -205,7 +207,9 @@ public function testLogQueries(): void
205207 // Verify metrics are reset after logging
206208 $ reflection = new ReflectionClass ($ trackingPdo );
207209 $ property = $ reflection ->getProperty ('queryMetrics ' );
208- $ property ->setAccessible (true );
210+ if (PHP_VERSION_ID < 80100 ) {
211+ $ property ->setAccessible (true );
212+ }
209213 $ this ->assertCount (0 , $ property ->getValue ($ trackingPdo ));
210214 }
211215}
You can’t perform that action at this time.
0 commit comments