Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 16 |
Lines | 23 |
Ratio | 100 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | private function newRegistryMatching($matching) |
||
|
|||
52 | { |
||
53 | $entry = $this |
||
54 | ->getMockBuilder(RegistryEntry::class) |
||
55 | ->disableOriginalConstructor() |
||
56 | ->getMock() |
||
57 | ; |
||
58 | |||
59 | $entry |
||
60 | ->expects($this->any()) |
||
61 | ->method('match') |
||
62 | ->willReturn($matching) |
||
63 | ; |
||
64 | |||
65 | return $entry; |
||
66 | } |
||
67 | } |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.