From 769b91cec9aec566e790c1a5f9eab13f4edc3bf1 Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Thu, 6 Jun 2024 08:32:07 +0800 Subject: [PATCH] Requires PHP 7.1 --- aliyun-oss-wordpress.php | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aliyun-oss-wordpress.php b/aliyun-oss-wordpress.php index 34aebda..9961fd7 100644 --- a/aliyun-oss-wordpress.php +++ b/aliyun-oss-wordpress.php @@ -457,7 +457,7 @@ function oss_read_dir_queue($homePath, $uploadPath) $foundFiles = []; while (!$dirsToProcess->isEmpty()) { - list($currentDir, $relativeDir) = $dirsToProcess->dequeue(); + [$currentDir, $relativeDir] = $dirsToProcess->dequeue(); foreach (new DirectoryIterator($currentDir) as $fileInfo) { if ($fileInfo->isDot()) continue; diff --git a/readme.txt b/readme.txt index 9398ddc..153bf88 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://qq52o.me/sponsor.html Tags: oss, 阿里云, 对象存储, aliyun Requires at least: 4.6 Tested up to: 6.5 -Requires PHP: 7.0 +Requires PHP: 7.1 Stable tag: 1.4.13 License: Apache2.0 License URI: http://www.apache.org/licenses/LICENSE-2.0.html