| Conditions | 4 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | public function __construct($file, $config) |
||
| 50 | { |
||
| 51 | if (!is_string($file) || !file_exists($file)) { |
||
| 52 | throw new InvalidArgumentException( |
||
| 53 | "Expects parameter 1 to be a valid file path" |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | |||
| 57 | if (!is_readable($file)) { |
||
| 58 | throw new RuntimeException("Unable to read file $file"); |
||
| 59 | } |
||
| 60 | |||
| 61 | $fileData = file($file); |
||
| 62 | |||
| 63 | $this->fileData = $fileData; |
||
|
|
|||
| 64 | $this->config = $config; |
||
| 65 | } |
||
| 66 | |||
| 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..