From 751c2d6655b6b9d362608a09e3c54fcbcae4836c Mon Sep 17 00:00:00 2001 From: Dennis Ploetner Date: Thu, 21 Sep 2023 13:48:43 +0200 Subject: [PATCH] PHP 8.1 compatibility tested --- MultisiteLanguageSwitcher.php | 4 ++-- composer.json | 4 +++- includes/MslsOutput.php | 2 +- readme.txt | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/MultisiteLanguageSwitcher.php b/MultisiteLanguageSwitcher.php index f437244c..e1d671f9 100644 --- a/MultisiteLanguageSwitcher.php +++ b/MultisiteLanguageSwitcher.php @@ -7,7 +7,7 @@ * @wordpress-plugin * * Plugin Name: Multisite Language Switcher - * Version: 2.5.10 + * Version: 2.5.11 * Plugin URI: http://msls.co/ * Description: A simple but powerful plugin that will help you to manage the relations of your contents in a multilingual multisite-installation. * Author: Dennis Ploetner @@ -40,7 +40,7 @@ * @author Dennis Ploetner */ if ( ! defined( 'MSLS_PLUGIN_VERSION' ) ) { - define( 'MSLS_PLUGIN_VERSION', '2.5.10' ); + define( 'MSLS_PLUGIN_VERSION', '2.5.11' ); define( 'MSLS_PLUGIN_PATH', plugin_basename( __FILE__ ) ); define( 'MSLS_PLUGIN__FILE__', __FILE__ ); diff --git a/composer.json b/composer.json index 7105d5ce..7de36381 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,9 @@ "phpstan/phpstan": "^1.8", "szepeviktor/phpstan-wordpress": "^1.1", "phpstan/extension-installer": "^1.1", - "antecedent/patchwork": "~2.1.19" + "antecedent/patchwork": "~2.1.19", + "squizlabs/php_codesniffer": "^3.7", + "phpcompatibility/php-compatibility": "^9.3" }, "autoload": { "psr-4": { diff --git a/includes/MslsOutput.php b/includes/MslsOutput.php index 6968271a..6bebd59a 100644 --- a/includes/MslsOutput.php +++ b/includes/MslsOutput.php @@ -181,7 +181,7 @@ public function get_tags() { /** * Sets tags for the output * - * @param array $arr + * @param string[] $arr * * @return MslsOutput */ diff --git a/readme.txt b/readme.txt index 0c703404..87ea8044 100644 --- a/readme.txt +++ b/readme.txt @@ -4,9 +4,9 @@ Contributors: realloc, lucatume Donate link: https://www.greenpeace.org/international/ Tags: multilingual, multisite, language, switcher, localization Requires at least: 4.5.0 -Tested up to: 6.2 +Tested up to: 6.3 Requires PHP: 7.1 -Stable tag: 2.5.10 +Stable tag: 2.5.11 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html