Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
20 | public function __construct(Filesystem $flySystem, array $metadata) |
||
21 | { |
||
22 | $this->flySystem = $flySystem; |
||
23 | $this->filename = $metadata['basename']; |
||
24 | $this->size = $metadata['size']; |
||
25 | $this->pathname = $metadata['path']; |
||
26 | $this->lastModified = $this->flySystem->getTimestamp($this->pathname); |
||
|
|||
27 | } |
||
28 | |||
42 | } |
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..