| 1 | <?php |
||
| 7 | class Helpers |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The loop used to create the Fulfilled Promise. |
||
| 11 | * |
||
| 12 | * @var null|\React\EventLoop\LoopInterface |
||
| 13 | */ |
||
| 14 | public static $loop = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Transform the Redis' list of key after value |
||
| 18 | * to key-value pairs. |
||
| 19 | * |
||
| 20 | * @param array $list |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | public static function redisListToArray(array $list) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Create a new fulfilled promise with a value. |
||
| 38 | * |
||
| 39 | * @param mixed $value |
||
| 40 | * @return \React\Promise\PromiseInterface |
||
| 41 | */ |
||
| 42 | public static function createFulfilledPromise($value): PromiseInterface |
||
| 50 | } |
||
| 51 |
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.