1 | <?php |
||
22 | final class ErrorExtension implements Extension |
||
23 | { |
||
24 | private const TYPE = 3; |
||
25 | |||
26 | 16 | public function getType() : int |
|
30 | |||
31 | /** |
||
32 | * @param object $value |
||
33 | */ |
||
34 | 2 | public function pack(Packer $packer, $value) : ?string |
|
51 | |||
52 | /** |
||
53 | * @return Error |
||
54 | */ |
||
55 | 2 | public function unpackExt(BufferUnpacker $unpacker, int $extLength) |
|
59 | } |
||
60 |
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.