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 ); } }