diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index b24788a7a..f8d7c76aa 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -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\\\\|null, array\\ 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 diff --git a/psalm-baseline.xml b/psalm-baseline.xml index bd7271b14..bc854ae73 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,20 +1,20 @@ - + - IteratorAggregate + - $fieldName - $order + + - $fieldName - $order + + @@ -26,17 +26,17 @@ - ClassMetadataFactoryInterface + - parent::__construct($objectManager, $entityClass) + - TValue|false + @@ -44,11 +44,11 @@ ]]> - $mapping - $mapping - $mapping - $mapping - $mapping + + + + + identifier => $this->getIdentifierValue($object)]]]> @@ -59,36 +59,36 @@ fieldMappings]]> - $mapping + associationMappings, static fn ($assoc) => ! empty($assoc['embedded']) )]]> - FieldMapping + ]]> - array + ]]> - $mapping + - $mapping - $options + + - $mapping - $options + + field]]> @@ -131,7 +131,7 @@ - assert($attributes instanceof SimpleXMLElement) + {'default-discriminator-value'})]]> {'discriminator-field'})]]> {'discriminator-map'})]]> @@ -187,12 +187,12 @@ - array_values + - $className + @@ -209,91 +209,91 @@ - IteratorAggregate + - array + - getDocumentManager + - CommandCompatibility + - getDocumentManager + - getDocumentManager + - getDocumentManager + - getDocumentManager + - getDocumentManager + - getDocumentManager + - DocumentManagerHelperCompatibility + - MetadataFilter + - $newMapping - $newMapping - $newMapping - $newMapping + + + + - $datetime instanceof DateTime + - $assoc - $assoc - $assoc2 - $assoc2 - $mapping - $mapping + + + + + + parentAssociations]]> - $divided + , 1: array}>]]> @@ -307,20 +307,20 @@ - Operator + - $documentPersister + - $mapping + $defaultFieldMapping + - FieldMapping + @@ -335,7 +335,7 @@ - new ArrayCollection([$project]) + @@ -352,21 +352,21 @@ - $i - $i - $j - $j + + + + - $phonenumbers - $phonenumbers + + - Iterator + @@ -383,7 +383,7 @@ - assertEmpty + @@ -391,6 +391,11 @@ true]]]> + + + 'Doctrine\ODM\MongoDB\Tests\Functional\SomeInvalidClass']]]> + + embeds]]> @@ -398,31 +403,31 @@ - assertIsInt + - $colAddToSet - $colAddToSet - $colAddToSet - $colPush - $colPush - $colPush - $colSet - $colSet - $colSet - $colSetArray - $colSetArray - $colSetArray + + + + + + + + + + + + - new ArrayCollection([ + + ])]]> @@ -432,12 +437,12 @@ new GH597Comment('Comment 2'), new GH597Comment('Comment 3'), ])]]> - new ArrayCollection([$referenceMany1, $referenceMany2]) + - $collection + @@ -447,7 +452,7 @@ - DocumentManager + dm]]> @@ -455,8 +460,8 @@ - $config - $mapping + + 'assoc', 'reference' => true, @@ -477,39 +482,39 @@ - 1 + - new IndexInfoIteratorIterator(new ArrayIterator($indexes)) - new IndexInfoIteratorIterator(new ArrayIterator([])) + + - new IndexInfoIteratorIterator(new ArrayIterator($indexes)) - new IndexInfoIteratorIterator(new ArrayIterator([])) + + - $options + $expectedWriteOptions + - empty($dbCommands[$databaseName]) + - assertInstanceOf + - assertInstanceOf + - loadAll - loadAll + +