These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | declare(strict_types=1); |
||
3 | |||
4 | namespace Moka\Tests; |
||
5 | |||
6 | use Moka\Plugin\PluginInterface; |
||
7 | use Moka\Strategy\MockingStrategyInterface; |
||
8 | use PHPUnit\Framework\TestCase; |
||
9 | |||
10 | abstract class MokaPluginTestCase extends TestCase |
||
11 | { |
||
12 | /** |
||
13 | * @var PluginInterface |
||
14 | */ |
||
15 | protected $pluginFQCN; |
||
16 | |||
17 | final public function testGetStrategy() |
||
18 | { |
||
19 | $this->assertInstanceOf(MockingStrategyInterface::class, ($this->pluginFQCN)::getStrategy()); |
||
20 | } |
||
21 | |||
22 | final protected function setPluginFQCN(string $pluginFQCN) |
||
23 | { |
||
24 | $this->pluginFQCN = $pluginFQCN; |
||
1 ignored issue
–
show
|
|||
25 | } |
||
26 | } |
||
27 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..