From 4189c5924677ce77df1e12c713ab77cbc7184d1c Mon Sep 17 00:00:00 2001 From: DemigodCode Date: Wed, 4 May 2022 15:55:10 +0200 Subject: [PATCH] PHP8.1 deprecation fix --- composer.json | 2 +- src/Client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 20295332c..59d9f3ec2 100755 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } ], "require": { - "php": ">=5.3.9" + "php": ">=8.1" }, "require-dev": { "phpunit/phpunit": "~4.8" diff --git a/src/Client.php b/src/Client.php index ee272d9c9..fea07c0ce 100644 --- a/src/Client.php +++ b/src/Client.php @@ -529,7 +529,7 @@ public function monitor() /** * {@inheritdoc} */ - public function getIterator() + public function getIterator(): \Traversable { $clients = array(); $connection = $this->getConnection();