diff --git a/composer.json b/composer.json index f33f696..8e25fb2 100644 --- a/composer.json +++ b/composer.json @@ -17,11 +17,11 @@ "require": { "php": "^7.1|^8.0", "ext-pdo": "*", - "symfony/yaml": "^4.2|^5.2", - "pimple/pimple": "^3.2", - "cartalyst/collections": "^1.1", - "psr/log": "^1.1|^2.0", - "predis/predis": "^1.1", + "symfony/yaml": "^4.0|^5.0|^6.0", + "pimple/pimple": "^3.0", + "cartalyst/collections": "^1.1|^2.0", + "psr/log": "^1.1|^2.0|^3.0", + "predis/predis": "^1.1|^2.0", "phpmailer/phpmailer": "^6.0" }, "require-dev": { diff --git a/src/Gateway/RedisGatewayAbstract.php b/src/Gateway/RedisGatewayAbstract.php index 680d2d8..8905963 100644 --- a/src/Gateway/RedisGatewayAbstract.php +++ b/src/Gateway/RedisGatewayAbstract.php @@ -46,7 +46,7 @@ public function __construct(RedisConfig $config) /** * @param string $key - * @param $value + * @param string $value * @return bool */ protected function setKeyIfNotExists(string $key, string $value): bool @@ -97,6 +97,6 @@ protected function pushToList(string $key, string $value): bool */ protected function popFromList(string $key): ?string { - return $this->client->lpop($key) ?? null; + return $this->client->lpop($key); } }