From 7abe5f34381e21848a9976a6b7b5030cdf1d3d5e Mon Sep 17 00:00:00 2001 From: Akihiro Harai Date: Thu, 2 May 2024 14:14:17 +0900 Subject: [PATCH] Support PHP 8.3 #45 --- .editorconfig | 2 +- .github/workflows/build.yml | 6 +++++- composer.json | 4 ++-- object-cache.php | 3 +++ phpcs.ruleset.xml => phpcs.xml | 0 5 files changed, 11 insertions(+), 4 deletions(-) rename phpcs.ruleset.xml => phpcs.xml (100%) diff --git a/.editorconfig b/.editorconfig index c1392f5..46c2082 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,5 +11,5 @@ trim_trailing_whitespace = true [*.php] indent_style = tab -[{composer.json,phpcs.ruleset.xml}] +[{composer.json,phpcs.xml}] indent_size = 4 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60fff03..d28a4af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,11 @@ jobs: - php: '8.0' phpunit: 9.3.9 - php: '8.1' - phpunit: 9.6.13 + phpunit: 9.6.19 + - php: '8.2' + phpunit: 9.6.19 + - php: '8.3' + phpunit: 9.6.19 steps: - uses: actions/checkout@v2 - name: Set PHP_VERSION diff --git a/composer.json b/composer.json index 1eb1fec..7791110 100644 --- a/composer.json +++ b/composer.json @@ -31,10 +31,10 @@ }, "scripts": { "lint": [ - "phpcs --standard=phpcs.ruleset.xml $(find ./ -name '*.php')" + "phpcs --standard=phpcs.xml $(find ./ -name '*.php')" ], "fix": [ - "phpcbf --standard=phpcs.ruleset.xml $(find ./ -name '*.php')" + "phpcbf --standard=phpcs.xml $(find ./ -name '*.php')" ] }, "support": { diff --git a/object-cache.php b/object-cache.php index fe0b2e3..6f269fe 100644 --- a/object-cache.php +++ b/object-cache.php @@ -403,6 +403,9 @@ class WP_Object_Cache { // phpcs:ignore public $retry_interval; public $max_retries; + private $multisite; + private $global_prefix; + /** * Sets the list of global groups. * diff --git a/phpcs.ruleset.xml b/phpcs.xml similarity index 100% rename from phpcs.ruleset.xml rename to phpcs.xml