| 1 | <?php |
||
| 13 | abstract class CheckAbstract implements SimpleCheck, CommandAware, CommandConfigAware |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ResultCollection |
||
| 17 | */ |
||
| 18 | protected $_results; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $_commandConfig; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var CheckCommand |
||
| 27 | */ |
||
| 28 | protected $_checkCommand; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Dot |
||
| 32 | */ |
||
| 33 | protected $_dot; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $_env; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | protected $_envFilePath; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param ResultCollection $results |
||
| 47 | */ |
||
| 48 | public function check(ResultCollection $results) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param array $commandConfig |
||
| 62 | */ |
||
| 63 | public function setCommandConfig(array $commandConfig) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param Command $command |
||
| 70 | */ |
||
| 71 | public function setCommand(Command $command) |
||
| 75 | } |
||
| 76 |
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.