-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add psalm tests & a bit code cleanup
Signed-off-by: Florian Steffens <[email protected]>
- Loading branch information
Florian Steffens
committed
Jan 15, 2024
1 parent
42508e8
commit 8a97e91
Showing
7 changed files
with
60 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="4" | ||
resolveFromConfigFile="true" | ||
findUnusedCode="false" | ||
findUnusedBaselineEntry="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
errorBaseline="tests/psalm-baseline.xml" | ||
> | ||
<stubs> | ||
<file name="tests/stub.phpstub" preloadClasses="true"/> | ||
</stubs> | ||
<projectFiles> | ||
<directory name="lib" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
<extraFiles> | ||
<directory name="vendor" /> | ||
</extraFiles> | ||
<issueHandlers> | ||
<UndefinedMagicMethod> | ||
<errorLevel type="suppress"> | ||
<directory name="lib/" /> | ||
</errorLevel> | ||
</UndefinedMagicMethod> | ||
<UndefinedClass> | ||
<errorLevel type="suppress"> | ||
<referencedClass name="Doctrine\DBAL\Exception" /> | ||
<referencedClass name="Doctrine\DBAL\Exception\InvalidFieldNameException" /> | ||
<referencedClass name="Doctrine\DBAL\Exception\TableNotFoundException" /> | ||
<referencedClass name="Doctrine\DBAL\Exception\UniqueConstraintViolationException" /> | ||
<referencedClass name="Doctrine\DBAL\Platforms\PostgreSQL94Platform" /> | ||
<referencedClass name="Doctrine\DBAL\Types\Types" /> | ||
</errorLevel> | ||
</UndefinedClass> | ||
<UndefinedDocblockClass> | ||
<errorLevel type="suppress"> | ||
<referencedClass name="Doctrine\DBAL\Driver\Statement" /> | ||
<referencedClass name="Doctrine\DBAL\Exception" /> | ||
<referencedClass name="Doctrine\DBAL\Exception\UniqueConstraintViolationException" /> | ||
<referencedClass name="Doctrine\DBAL\Platforms\AbstractPlatform" /> | ||
<referencedClass name="Doctrine\DBAL\Schema\Schema" /> | ||
<referencedClass name="Doctrine\DBAL\Schema\SchemaException" /> | ||
<referencedClass name="Doctrine\DBAL\Schema\Table" /> | ||
</errorLevel> | ||
</UndefinedDocblockClass> | ||
</issueHandlers> | ||
</psalm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,6 +122,3 @@ export default { | |
}, | ||
} | ||
</script> | ||
<style scoped lang="scss"> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="dev-master@"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |