Skip to content

Commit

Permalink
Merge pull request #301 from justinmaurerdotdev/staging-check-php8-co…
Browse files Browse the repository at this point in the history
…mpat

Made an implicit float to integer conversion explicit to fix PHP 8.2 deprecation warning
  • Loading branch information
iamdharmesh authored Jan 3, 2024
2 parents b34ee80 + 9bc7334 commit 2c8b9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-ast-staging.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function get_autoshare_live_url_lock_key() {
$scheme = wp_parse_url( $url, PHP_URL_SCHEME ) . '://';
$url = str_replace( $scheme, '', $url );

return $scheme . substr_replace( $url, '_[autoshare_liveurl]_', strlen( $url ) / 2, 0 );
return $scheme . substr_replace( $url, '_[autoshare_liveurl]_', intval( strlen( $url ) / 2 ), 0 );
}

/**
Expand Down

0 comments on commit 2c8b9e4

Please sign in to comment.