| 1 | <?php |
||
| 5 | class Inf |
||
| 6 | { |
||
| 7 | private $duration; |
||
| 8 | |||
| 9 | private $title; |
||
| 10 | |||
| 11 | private $version; |
||
| 12 | |||
| 13 | public function __construct($duration, string $title = null, $version = 6) |
||
| 19 | |||
| 20 | public static function fromString(string $string) |
||
| 26 | |||
| 27 | public function getDuration() |
||
| 31 | |||
| 32 | public function getTitle() |
||
| 36 | |||
| 37 | public function __toString() |
||
| 48 | } |
||
| 49 |
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.