Skip to content

Commit 129e46e

Browse files
committed
qa: ignore mongo-related files when running Psalm
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
1 parent 8e4cd90 commit 129e46e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

psalm.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<ignoreFiles>
1616
<directory name=".github"/>
1717
<directory name="vendor"/>
18+
<file name="src/Adapter/MongoAdapter.php"/>
19+
<file name="src/Factory/MongoAdapterFactory.php"/>
20+
<file name="test/Controller/AuthControllerWithMongoAdapterTest.php"/>
21+
<file name="test/Factory/MongoAdapterFactoryTest.php"/>
1822
</ignoreFiles>
1923
</projectFiles>
2024

test/Controller/AuthControllerWithMongoAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function setUp(): void
5454
try {
5555
$client = new MongoClient("mongodb://127.0.0.1:27017");
5656
} catch (MongoConnectionException $e) {
57-
$this->markTestSkipped($e->getMessage());
57+
$this->markTestSkipped((string) $e->getMessage());
5858
}
5959

6060
$this->db = $client->selectDB('laminas_oauth2_test');

0 commit comments

Comments
 (0)