| 1 | <?php |
||
| 19 | abstract class AbstractConnectionCommand extends AbstractAdminChatCommand |
||
| 20 | { |
||
| 21 | /** @var Connection */ |
||
| 22 | protected $connection; |
||
| 23 | |||
| 24 | /** @var ChatNotification */ |
||
| 25 | protected $chatNotification; |
||
| 26 | |||
| 27 | /** @var PlayerStorage */ |
||
| 28 | protected $playerStorage; |
||
| 29 | |||
| 30 | /** @var Logger */ |
||
| 31 | protected $logger; |
||
| 32 | |||
| 33 | 2 | public function __construct( |
|
| 51 | } |
||
| 52 |
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.