@@ -1244,11 +1244,11 @@ protected function setLocale(mixed ...$arguments): void
12441244 *
12451245 * @psalm-param class-string<RealInstanceType> $originalClassName
12461246 *
1247- * @psalm-return MockObject&RealInstanceType
1248- *
12491247 * @throws InvalidArgumentException
12501248 * @throws MockObjectException
12511249 * @throws NoPreviousThrowableException
1250+ *
1251+ * @psalm-return MockObject&RealInstanceType
12521252 */
12531253 protected function createMock (string $ originalClassName ): MockObject
12541254 {
@@ -1296,11 +1296,11 @@ protected function createMockForIntersectionOfInterfaces(array $interfaces): Moc
12961296 *
12971297 * @psalm-param class-string<RealInstanceType> $originalClassName
12981298 *
1299- * @psalm-return MockObject&RealInstanceType
1300- *
13011299 * @throws InvalidArgumentException
13021300 * @throws MockObjectException
13031301 * @throws NoPreviousThrowableException
1302+ *
1303+ * @psalm-return MockObject&RealInstanceType
13041304 */
13051305 protected function createConfiguredMock (string $ originalClassName , array $ configuration ): MockObject
13061306 {
@@ -1322,10 +1322,10 @@ protected function createConfiguredMock(string $originalClassName, array $config
13221322 *
13231323 * @psalm-param class-string<RealInstanceType> $originalClassName
13241324 *
1325- * @psalm-return MockObject&RealInstanceType
1326- *
13271325 * @throws InvalidArgumentException
13281326 * @throws MockObjectException
1327+ *
1328+ * @psalm-return MockObject&RealInstanceType
13291329 */
13301330 protected function createPartialMock (string $ originalClassName , array $ methods ): MockObject
13311331 {
@@ -1352,11 +1352,11 @@ protected function createPartialMock(string $originalClassName, array $methods):
13521352 *
13531353 * @psalm-param class-string<RealInstanceType> $originalClassName
13541354 *
1355- * @psalm-return MockObject&RealInstanceType
1356- *
13571355 * @throws InvalidArgumentException
13581356 * @throws MockObjectException
13591357 *
1358+ * @psalm-return MockObject&RealInstanceType
1359+ *
13601360 * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5240
13611361 */
13621362 protected function createTestProxy (string $ originalClassName , array $ constructorArguments = []): MockObject
@@ -1383,11 +1383,11 @@ protected function createTestProxy(string $originalClassName, array $constructor
13831383 *
13841384 * @psalm-param class-string<RealInstanceType> $originalClassName
13851385 *
1386- * @psalm-return MockObject&RealInstanceType
1387- *
13881386 * @throws InvalidArgumentException
13891387 * @throws MockObjectException
13901388 *
1389+ * @psalm-return MockObject&RealInstanceType
1390+ *
13911391 * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5241
13921392 */
13931393 protected function getMockForAbstractClass (string $ originalClassName , array $ arguments = [], string $ mockClassName = '' , bool $ callOriginalConstructor = true , bool $ callOriginalClone = true , bool $ callAutoload = true , array $ mockedMethods = [], bool $ cloneArguments = false ): MockObject
@@ -2347,11 +2347,11 @@ private function handleExceptionFromInvokedCountMockObjectRule(Throwable $t): vo
23472347 *
23482348 * @psalm-param class-string<RealInstanceType> $originalClassName
23492349 *
2350- * @psalm-return Stub&RealInstanceType
2351- *
23522350 * @throws InvalidArgumentException
23532351 * @throws MockObjectException
23542352 * @throws NoPreviousThrowableException
2353+ *
2354+ * @psalm-return Stub&RealInstanceType
23552355 */
23562356 protected static function createStub (string $ originalClassName ): Stub
23572357 {
@@ -2393,11 +2393,11 @@ protected static function createStubForIntersectionOfInterfaces(array $interface
23932393 *
23942394 * @psalm-param class-string<RealInstanceType> $originalClassName
23952395 *
2396- * @psalm-return Stub&RealInstanceType
2397- *
23982396 * @throws InvalidArgumentException
23992397 * @throws MockObjectException
24002398 * @throws NoPreviousThrowableException
2399+ *
2400+ * @psalm-return Stub&RealInstanceType
24012401 */
24022402 final protected static function createConfiguredStub (string $ originalClassName , array $ configuration ): Stub
24032403 {
0 commit comments