| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | final class Readers |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * The set of readers to use. |
||
| 34 | * |
||
| 35 | * @var \Syscodes\Dotenv\Repository\Adapters\Readers $readers |
||
| 36 | */ |
||
| 37 | protected $readers; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Constructor. The create new Readers instance. |
||
| 41 | * |
||
| 42 | * @param \Syscodes\Dotenv\Repository\Adapters\Readers $readers |
||
| 43 | * |
||
| 44 | * return void |
||
| 45 | */ |
||
| 46 | public function __construct(array $readers) |
||
| 47 | { |
||
| 48 | $this->readers = $readers; |
||
|
|
|||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Read an environment variable |
||
| 53 | * |
||
| 54 | * @param string $name |
||
| 55 | * |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | public function read(string $name) |
||
| 65 | } |
||
| 66 | } |
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..