| 1 | <?php |
||
| 9 | class SettingsReader |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $filePath; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Logger |
||
| 18 | */ |
||
| 19 | private $logger; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $filePath |
||
| 23 | * @param LoggerInterface $logger |
||
| 24 | */ |
||
| 25 | public function __construct($filePath, LoggerInterface $logger) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function read() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | public function fileExists() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return bool |
||
| 57 | */ |
||
| 58 | public function isReadable() |
||
| 62 | } |
||
| 63 |
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..