Skip to content

Commit 86d7958

Browse files
committed
fix: make psalm happy
1 parent c24fcf2 commit 86d7958

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Instrumentation/PDO/tests/Integration/PDOInstrumentationTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ private function createDBWithNewSubclass(): PDO
3232
$this->markTestSkipped('Pdo\Sqlite class is not available in this PHP version');
3333
}
3434

35+
/** @psalm-suppress UndefinedMethod */
3536
return PDO::connect('sqlite::memory:');
3637
}
3738

@@ -86,6 +87,11 @@ public function test_pdo_construct(): void
8687
*/
8788
public function test_pdo_sqlite_subclass(): void
8889
{
90+
// skip if php version is less than 8.4
91+
if (version_compare(PHP_VERSION, '8.4', '<')) {
92+
$this->markTestSkipped('Pdo\Sqlite class is not available in this PHP version');
93+
}
94+
8995
$this->assertCount(0, $this->storage);
9096
/** @var Pdo\Sqlite $db */
9197
$db = self::createDBWithNewSubclass();

0 commit comments

Comments
 (0)