Skip to content

Commit

Permalink
fix: More return types, because of silly deprecation notices.
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Jan 10, 2024
1 parent d73485a commit 528d744
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libraries/class-wp-session.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function reset() {
*
* @return mixed
*/
public function current() {
public function current() : mixed {
return current( $this->container );
}

Expand All @@ -306,7 +306,7 @@ public function current() {
*
* @return mixed
*/
public function key() {
public function key() : mixed {
return key( $this->container );
}

Expand All @@ -317,7 +317,7 @@ public function key() {
*
* @return void
*/
public function next() {
public function next() : void {
next( $this->container );
}

Expand All @@ -328,7 +328,7 @@ public function next() {
*
* @return void
*/
public function rewind() {
public function rewind() : void {
reset( $this->container );
}

Expand All @@ -339,7 +339,7 @@ public function rewind() {
*
* @return bool
*/
public function valid() {
public function valid() : bool {
return $this->offsetExists( $this->key() );
}
/*****************************************************************/
Expand All @@ -352,7 +352,7 @@ public function valid() {
*
* @return int
*/
public function count() {
public function count() : int {
return count( $this->container );
}
}

0 comments on commit 528d744

Please sign in to comment.