1 | <?php |
||
15 | class PhpUnitHandler extends ToolHandler |
||
16 | { |
||
17 | /** @var PhpUnitProcessBuilder */ |
||
18 | private $phpUnitProcessBuilder; |
||
19 | |||
20 | /** |
||
21 | * @param OutputHandlerInterface $outputHandler |
||
22 | * @param ProcessBuilderInterface $processBuilderInterface |
||
23 | */ |
||
24 | 4 | public function __construct(OutputHandlerInterface $outputHandler, ProcessBuilderInterface $processBuilderInterface) |
|
30 | |||
31 | /** |
||
32 | * @param array $messages |
||
33 | * |
||
34 | * @throws UnitTestsException |
||
35 | */ |
||
36 | 3 | public function run(array $messages) |
|
51 | |||
52 | /** |
||
53 | * @param $suite |
||
54 | */ |
||
55 | 1 | public function setSuite($suite) |
|
59 | |||
60 | 3 | private function setTitle() |
|
66 | } |
||
67 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.