diff --git a/.psalm/baseline.xml b/.psalm/baseline.xml index 2a1443dd805..1cd433444db 100644 --- a/.psalm/baseline.xml +++ b/.psalm/baseline.xml @@ -198,8 +198,9 @@ $type - + null + $methods $this->type diff --git a/src/Framework/MockObject/MockBuilder.php b/src/Framework/MockObject/MockBuilder.php index 093a8ff55c4..f6a24254a20 100644 --- a/src/Framework/MockObject/MockBuilder.php +++ b/src/Framework/MockObject/MockBuilder.php @@ -180,6 +180,8 @@ public function setMethods(array $methods = null): self /** * Specifies the subset of methods to mock, requiring each to exist in the class + * + * @param string[] $methods */ public function setRealMethods(array $methods = null): self {