From 528d7441f64cd45de32fd599f6853a93c89a9489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20G=C3=A5rdenberg?= Date: Wed, 10 Jan 2024 08:56:38 +0100 Subject: [PATCH] fix: More return types, because of silly deprecation notices. --- libraries/class-wp-session.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/class-wp-session.php b/libraries/class-wp-session.php index 8ac81440..ebbb66eb 100644 --- a/libraries/class-wp-session.php +++ b/libraries/class-wp-session.php @@ -295,7 +295,7 @@ public function reset() { * * @return mixed */ - public function current() { + public function current() : mixed { return current( $this->container ); } @@ -306,7 +306,7 @@ public function current() { * * @return mixed */ - public function key() { + public function key() : mixed { return key( $this->container ); } @@ -317,7 +317,7 @@ public function key() { * * @return void */ - public function next() { + public function next() : void { next( $this->container ); } @@ -328,7 +328,7 @@ public function next() { * * @return void */ - public function rewind() { + public function rewind() : void { reset( $this->container ); } @@ -339,7 +339,7 @@ public function rewind() { * * @return bool */ - public function valid() { + public function valid() : bool { return $this->offsetExists( $this->key() ); } /*****************************************************************/ @@ -352,7 +352,7 @@ public function valid() { * * @return int */ - public function count() { + public function count() : int { return count( $this->container ); } }