| 1 | <?php |
||
| 14 | class Byterange |
||
| 15 | { |
||
| 16 | private $length; |
||
| 17 | |||
| 18 | private $offset; |
||
| 19 | |||
| 20 | public function __construct(int $length, string $offset = null) |
||
| 25 | |||
| 26 | public static function fromString(string $string) |
||
| 32 | |||
| 33 | public function getLength() |
||
| 37 | |||
| 38 | public function getOffset() |
||
| 42 | |||
| 43 | public function __toString() |
||
| 51 | } |
||
| 52 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.