diff --git a/.psalm/baseline.xml b/.psalm/baseline.xml
index 809e61c6d83..cfe53c3c1dc 100644
--- a/.psalm/baseline.xml
+++ b/.psalm/baseline.xml
@@ -97,9 +97,29 @@
self
+
+ $this->will($stub)
+ $this->will($stub)
+ $this->will($stub)
+ $this->will($stub)
+ $this->will($stub)
+ $this->will($stub)
+ $this->will($stub)
+ $this->will($stub)
+
InvocationMocker
+
+ self
+ self
+ self
+ self
+ self
+ self
+ self
+ self
+
registerId
diff --git a/src/Framework/MockObject/Builder/InvocationMocker.php b/src/Framework/MockObject/Builder/InvocationMocker.php
index 914c730e9a7..48576615886 100644
--- a/src/Framework/MockObject/Builder/InvocationMocker.php
+++ b/src/Framework/MockObject/Builder/InvocationMocker.php
@@ -68,7 +68,7 @@ public function id($id): self
return $this;
}
- public function will(Stub $stub): self
+ public function will(Stub $stub): Identity
{
$this->matcher->setStub($stub);