Skip to content

Commit a546de0

Browse files
committed
Add stubs for psalm
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 95a55cf commit a546de0

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

psalm.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
errorBaseline="tests/psalm-baseline.xml"
9-
>
9+
>
10+
<stubs>
11+
<file name="tests/stub.phpstub" preloadClasses="true"/>
12+
</stubs>
1013
<projectFiles>
1114
<directory name="lib" />
1215
<ignoreFiles>

tests/stub.phpstub

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace OCA\Federation {
6+
class TrustedServers {
7+
public function getServers() {}
8+
public function isTrustedServer($domainWithPort) {}
9+
}
10+
}
11+
12+
namespace Doctrine\DBAL\Platforms {
13+
class SqlitePlatform {}
14+
}

0 commit comments

Comments
 (0)