| 1 | <?php |
||
| 27 | class Parser |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * File Data |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $fileData; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Config |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | private $config = array(); |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Constructor |
||
| 43 | * |
||
| 44 | * @param string $file file path |
||
| 45 | * @param array $config configuration array("name" => 22) // field name => size |
||
| 46 | * |
||
| 47 | * @throws Exception |
||
| 48 | */ |
||
| 49 | public function __construct($file, $config) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Extract |
||
| 69 | * |
||
| 70 | * @return Array |
||
| 71 | */ |
||
| 72 | public function extract() |
||
| 90 | } |
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..