Skip to content

Commit

Permalink
Merge pull request #202 from core23/stan
Browse files Browse the repository at this point in the history
Update phpstan baseline
  • Loading branch information
nucleos-bot committed May 27, 2021
2 parents 88dc524 + 83785af commit 8369289
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 7 deletions.
48 changes: 41 additions & 7 deletions phpstan-baseline.neon
@@ -1,27 +1,32 @@
parameters:
ignoreErrors:
-
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass will always evaluate to false\\.$#"
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\AbstractListener\\:\\:createDateTimeField\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#"
count: 1
path: src/EventListener/ORM/AbstractListener.php

-
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass\\<object\\> will always evaluate to false\\.$#"
count: 1
path: src/EventListener/ORM/ConfirmableListener.php

-
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass will always evaluate to false\\.$#"
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass\\<object\\> will always evaluate to false\\.$#"
count: 1
path: src/EventListener/ORM/DeletableListener.php

-
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass will always evaluate to false\\.$#"
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass\\<object\\> will always evaluate to false\\.$#"
count: 1
path: src/EventListener/ORM/LifecycleDateListener.php

-
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass will always evaluate to false\\.$#"
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass\\<object\\> will always evaluate to false\\.$#"
count: 1
path: src/EventListener/ORM/SortableListener.php

-
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\TablePrefixEventListener\\:\\:evaluteMapping\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#"
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\TablePrefixEventListener\\:\\:addSequenceGenerator\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#"
count: 1
path: src/EventListener/ORM/TablePrefixEventListener.php

Expand All @@ -31,7 +36,37 @@ parameters:
path: src/EventListener/ORM/TablePrefixEventListener.php

-
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass will always evaluate to false\\.$#"
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\TablePrefixEventListener\\:\\:addSequencePrefix\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#"
count: 1
path: src/EventListener/ORM/TablePrefixEventListener.php

-
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\TablePrefixEventListener\\:\\:addTablePrefix\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#"
count: 1
path: src/EventListener/ORM/TablePrefixEventListener.php

-
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\TablePrefixEventListener\\:\\:evaluteMapping\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#"
count: 1
path: src/EventListener/ORM/TablePrefixEventListener.php

-
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\TablePrefixEventListener\\:\\:evaluteMapping\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#"
count: 1
path: src/EventListener/ORM/TablePrefixEventListener.php

-
message: "#^Method Nucleos\\\\Doctrine\\\\EventListener\\\\ORM\\\\TablePrefixEventListener\\:\\:isValidTable\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#"
count: 1
path: src/EventListener/ORM/TablePrefixEventListener.php

-
message: "#^Parameter \\#1 \\$definition of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\<object\\>\\:\\:setSequenceGeneratorDefinition\\(\\) expects array\\<string, string\\>, array\\<string, int\\|string\\> given\\.$#"
count: 1
path: src/EventListener/ORM/TablePrefixEventListener.php

-
message: "#^Strict comparison using \\=\\=\\= between null and ReflectionClass\\<object\\> will always evaluate to false\\.$#"
count: 1
path: src/EventListener/ORM/UniqueActiveListener.php

Expand Down Expand Up @@ -80,4 +115,3 @@ parameters:
count: 1
path: tests/Fixtures/DemoEntityManager.php


5 changes: 5 additions & 0 deletions psalm-baseline.xml
Expand Up @@ -11,6 +11,11 @@
<code>end</code>
</PossiblyUndefinedMethod>
</file>
<file src="src/EventListener/ORM/TablePrefixEventListener.php">
<InvalidScalarArgument occurrences="1">
<code>$newDefinition</code>
</InvalidScalarArgument>
</file>
<file src="src/Test/ORM/EntityManagerMockFactory.php">
<MismatchingDocblockReturnType occurrences="1">
<code>EntityManager|MockObject</code>
Expand Down

0 comments on commit 8369289

Please sign in to comment.