| 1 | <?php |
||
| 12 | class ProtocolFileContent |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @type string |
||
| 16 | */ |
||
| 17 | protected $protocol; |
||
| 18 | /** |
||
| 19 | * @type Content |
||
| 20 | */ |
||
| 21 | private static $objProtocol; |
||
| 22 | |||
| 23 | private function __construct () |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return \Classes\Update\ProtocolFileContent |
||
| 30 | */ |
||
| 31 | public static function getInstance () |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | public function hasProtocol () |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getProtocol () |
||
| 56 | |||
| 57 | /** |
||
| 58 | * |
||
| 59 | */ |
||
| 60 | private function parseContentProtocol () |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return bool |
||
| 76 | */ |
||
| 77 | private function hasEnabled ( $type ) |
||
| 94 | |||
| 95 | } |
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..