Skip to content

Commit 85554d2

Browse files
committed
Removed some extensions, exchanged them with stubs for identical functionality
1 parent 1331431 commit 85554d2

File tree

3 files changed

+39
-35
lines changed

3 files changed

+39
-35
lines changed

extension.neon

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
parameters:
2+
stubFiles:
3+
- stubs/MockInterface.php
4+
15
services:
26
-
37
class: PHPStan\Mockery\Reflection\StubMethodsClassReflectionExtension
@@ -53,11 +57,6 @@ services:
5357
tags:
5458
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
5559

56-
-
57-
class: PHPStan\Mockery\Type\ShouldReceiveDynamicReturnTypeExtension
58-
tags:
59-
- phpstan.broker.dynamicMethodReturnTypeExtension
60-
6160
-
6261
class: PHPStan\Mockery\PhpDoc\TypeNodeResolverExtension
6362
tags:

src/Mockery/Type/ShouldReceiveDynamicReturnTypeExtension.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

stubs/MockInterface.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace Mockery;
4+
5+
interface MockInterface
6+
{
7+
8+
/**
9+
* @param string[] ...$methodNames
10+
* @return Expectation
11+
*/
12+
public function shouldReceive(...$methodNames);
13+
14+
/**
15+
* @return static
16+
*/
17+
public function makePartial();
18+
19+
}
20+
21+
interface LegacyMockInterface
22+
{
23+
24+
/**
25+
* @param string[] ...$methodNames
26+
* @return Expectation
27+
*/
28+
public function shouldReceive(...$methodNames);
29+
30+
/**
31+
* @return static
32+
*/
33+
public function makePartial();
34+
35+
}

0 commit comments

Comments
 (0)