From 60a8f6d33bba70ecd26617240bf7b56e239880c3 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 21 Dec 2022 10:56:38 -0800 Subject: [PATCH] Fix deprecation notices in PHP 8.1 --- src/Core_Command.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core_Command.php b/src/Core_Command.php index 8387f4de..2410d7e5 100644 --- a/src/Core_Command.php +++ b/src/Core_Command.php @@ -926,7 +926,7 @@ private static function get_wp_details( $abspath = ABSPATH ) { ); } - $version_content = file_get_contents( $versions_path, null, null, 6, 2048 ); + $version_content = file_get_contents( $versions_path, false, null, 6, 2048 ); $vars = [ 'wp_version', 'wp_db_version', 'tinymce_version', 'wp_local_package' ]; $result = []; @@ -988,7 +988,7 @@ private static function find_var( $var_name, $code ) { * @return string|array String message on failure. An array of checksums on success. */ private static function get_core_checksums( $version, $locale, $insecure ) { - $query = http_build_query( compact( 'version', 'locale' ), null, '&' ); + $query = http_build_query( compact( 'version', 'locale' ), '', '&' ); $url = "https://api.wordpress.org/core/checksums/1.0/?{$query}"; $headers = [ 'Accept' => 'application/json' ];