1 | <?php |
||
14 | class Inf |
||
15 | { |
||
16 | private $duration; |
||
17 | |||
18 | private $title; |
||
19 | |||
20 | private $version; |
||
21 | |||
22 | public function __construct($duration, string $title = null, $version = 6) |
||
28 | |||
29 | public static function fromString(string $string) |
||
35 | |||
36 | public function getDuration() |
||
40 | |||
41 | public function getTitle() |
||
45 | |||
46 | public function __toString() |
||
57 | } |
||
58 |
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.