Skip to content

Commit

Permalink
Merge branch '10.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 1, 2023
2 parents 0879c1f + 23a9e6a commit 19fbba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .psalm/baseline.xml
Expand Up @@ -363,7 +363,7 @@
<code><![CDATA[(new ReflectionClass($stubClassName))->newInstanceWithoutConstructor()]]></code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code>MockObject</code>
<code>Stub</code>
</MoreSpecificReturnType>
</file>
<file src="src/Framework/MockObject/Runtime/Rule/Parameters.php">
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/Runtime/ReturnValueGenerator.php
Expand Up @@ -178,7 +178,7 @@ private function onlyInterfaces(array $types): bool
*
* @throws RuntimeException
*/
private function newInstanceOf(string $stubClassName, string $className, string $methodName): MockObject
private function newInstanceOf(string $stubClassName, string $className, string $methodName): Stub
{
try {
return (new ReflectionClass($stubClassName))->newInstanceWithoutConstructor();
Expand Down

0 comments on commit 19fbba4

Please sign in to comment.