Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fatal errors on PHP 7.4 #177

Merged
merged 1 commit into from
Mar 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions includes/class-windows-azure-generic-list-response.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public function __construct( array $rest_response, Windows_Azure_Rest_Api_Client
*
* @return mixed Can return any type.
*/
public function current(): mixed {
#[\ReturnTypeWillChange]
public function current() {
if ( ! isset( $this->_items[ $this->_position ] ) ) {
return null;
} else {
Expand Down Expand Up @@ -172,7 +173,8 @@ public function next(): void {
*
* @return mixed scalar on success, or null on failure.
*/
public function key(): mixed {
#[\ReturnTypeWillChange]
public function key() {
return $this->_position;
}

Expand Down Expand Up @@ -216,7 +218,8 @@ public function get_all() {
*
* @return null|string Next portion of data marker.
*/
public function get_next_marker(): mixed {
#[\ReturnTypeWillChange]
public function get_next_marker() {
return $this->_next_marker;
}

Expand Down