Fix case of interface name (#2997)

And baseline phpstan error due to non-inherited parameter type
This commit is contained in:
Jérôme Tamarelle
2026-03-18 10:24:05 +01:00
committed by GitHub
parent b34f2dce3c
commit d553b7e184
2 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,12 @@ parameters:
count: 1
path: src/Aggregation/Builder.php
-
message: '#^Method Doctrine\\ODM\\MongoDB\\Aggregation\\Expr\:\:mergeObjects\(\) has parameter \$expressions with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Aggregation/Expr.php
-
message: '#^Method Doctrine\\ODM\\MongoDB\\Aggregation\\Stage\:\:execute\(\) return type with generic interface Doctrine\\ODM\\MongoDB\\Iterator\\Iterator does not specify its types\: TValue$#'
identifier: missingType.generics

View File

@@ -255,7 +255,7 @@ class DocumentManager implements ObjectManager
}
/** Gets the metadata factory used to gather the metadata of classes. */
public function getMetadataFactory(): ClassmetadataFactoryInterface
public function getMetadataFactory(): ClassMetadataFactoryInterface
{
return $this->metadataFactory;
}