From 3750e7bdb55dbc1ea8396c37bd3a895cf467380f Mon Sep 17 00:00:00 2001 From: Boruta Date: Sat, 7 Jan 2023 10:07:13 +0100 Subject: [PATCH] New packages version allowed --- composer.json | 10 +++++----- src/Gateway/RedisGatewayAbstract.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) 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); } }