Skip to content

Commit

Permalink
Ignore known SA errors
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Mar 6, 2024
1 parent 406fed3 commit a0c806f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phpstan-baseline.neon
Expand Up @@ -790,6 +790,16 @@ parameters:
count: 1
path: tests/Doctrine/ODM/MongoDB/Tests/Functional/NestedDocumentsTest.php

-
message: "#^Parameter \\$discriminatorMap of attribute class Doctrine\\\\ODM\\\\MongoDB\\\\Mapping\\\\Annotations\\\\ReferenceOne constructor expects array\\<string, class\\-string\\>\\|null, array\\<string, string\\> given\\.$#"
count: 1
path: tests/Doctrine/ODM/MongoDB/Tests/Functional/TargetDocumentTest.php

-
message: "#^Parameter \\$targetDocument of attribute class Doctrine\\\\ODM\\\\MongoDB\\\\Mapping\\\\Annotations\\\\ReferenceOne constructor expects class\\-string\\|null, string given\\.$#"
count: 1
path: tests/Doctrine/ODM/MongoDB/Tests/Functional/TargetDocumentTest.php

-
message: "#^Property Doctrine\\\\ODM\\\\MongoDB\\\\Tests\\\\Functional\\\\Ticket\\\\GH1058PersistDocument\\:\\:\\$id is never written, only read\\.$#"
count: 1
Expand Down
5 changes: 5 additions & 0 deletions psalm-baseline.xml
Expand Up @@ -391,6 +391,11 @@
<code><![CDATA[['upsert' => true]]]></code>
</InvalidArgument>
</file>
<file src="tests/Doctrine/ODM/MongoDB/Tests/Functional/TargetDocumentTest.php">
<UndefinedClass>
<code><![CDATA[['Foo' => 'Doctrine\ODM\MongoDB\Tests\Functional\SomeInvalidClass']]]></code>
</UndefinedClass>
</file>
<file src="tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GH1011Test.php">
<InvalidArgument>
<code><![CDATA[$doc->embeds]]></code>
Expand Down

0 comments on commit a0c806f

Please sign in to comment.