1 | <?php |
||
7 | class hsl implements \ArrayAccess { |
||
8 | |||
9 | private $hsl; |
||
10 | protected $accuracy; |
||
11 | |||
12 | public function __construct(array $rgb_array, int $accuracy = 3) { |
||
16 | |||
17 | public function offsetExists($offset) :bool { |
||
20 | |||
21 | public function offsetGet($offset) { |
||
27 | |||
28 | public function offsetSet($offset, $value) { |
||
34 | |||
35 | public function offsetUnset($offset) { |
||
40 | } |
||
41 | |||
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.