| 1 | <?php |
||
| 5 | class Byterange |
||
| 6 | { |
||
| 7 | private $length; |
||
| 8 | |||
| 9 | private $offset; |
||
| 10 | |||
| 11 | public function __construct(int $length, string $offset = null) |
||
| 16 | |||
| 17 | public static function fromString(string $string) |
||
| 23 | |||
| 24 | public function getLength() |
||
| 28 | |||
| 29 | public function getOffset() |
||
| 33 | |||
| 34 | public function __toString() |
||
| 42 | } |
||
| 43 |
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.