From ad245ebf43c38a689362723302b2257a998c6ca2 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer <stefan@stklcode.de> Date: Sun, 24 Mar 2024 11:07:41 +0100 Subject: [PATCH] raise requirements to PHP 7.2 and WordPress 5.0 --- .drone.yml | 2 +- .github/workflows/test.yml | 4 ++-- README.md | 4 ++-- composer.json | 8 ++++---- phpcs.xml | 4 ++-- stklcode-liveticker.php | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8e48578..6f165f4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: depends_on: - composer-install - name: node-install - image: node:18 + image: node:20 commands: - npm install - name: lint-assets diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a1e2144..9c9db30 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,8 +14,8 @@ jobs: wordpress: '6.1' - php: '8.0' wordpress: '5.9' - - php: '5.6' - wordpress: '4.7' + - php: '7.2' + wordpress: '5.0' steps: - name: Checkout uses: actions/checkout@v4 diff --git a/README.md b/README.md index f759e0e..3591260 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ * Contributors: Stefan Kalscheuer * Tags: liveticker, feed, rss -* Requires at least: 4.7 +* Requires at least: 5.0 * Tested up to: 6.4 -* Requires PHP: 5.6 +* Requires PHP: 7.2 * Stable tag: 1.2.2 * License: GPLv2 or later * License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/composer.json b/composer.json index 45326a3..61d65bc 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "stklcode/stklcode-liveticker", - "version": "1.2.2", + "version": "1.3.0", "description": "A simple Liveticker for Wordpress.", "keywords": [ "wordpress", @@ -17,14 +17,14 @@ ], "type": "wordpress-plugin", "require": { - "php": ">=5.6", - "composer/installers": "~1.12" + "php": ">=7.2", + "composer/installers": "~v2.1.1" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^v1.0", "matthiasmullie/minify": "^1.3", "phpcompatibility/phpcompatibility-wp": "^2.1", - "phpunit/phpunit": "^5|^6|^7|^8|^9", + "phpunit/phpunit": "^8|^9", "slowprog/composer-copy-file": "~0.3", "squizlabs/php_codesniffer": "^3.9", "wp-coding-standards/wpcs": "^3.0", diff --git a/phpcs.xml b/phpcs.xml index 63c7366..0b56d2b 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -12,7 +12,7 @@ <file>views</file> <!-- Compliance with WordPress Coding Standard --> - <config name="minimum_supported_wp_version" value="4.7"/> + <config name="minimum_supported_wp_version" value="5.0"/> <rule ref="WordPress"> <exclude name="WordPress.DB.SlowDBQuery.slow_db_query_tax_query"/> </rule> @@ -25,6 +25,6 @@ </rule> <!-- PHP compatibility level --> - <config name="testVersion" value="5.6-"/> + <config name="testVersion" value="7.2-"/> <rule ref="PHPCompatibilityWP"/> </ruleset> diff --git a/stklcode-liveticker.php b/stklcode-liveticker.php index 1cebdd8..9a775a9 100644 --- a/stklcode-liveticker.php +++ b/stklcode-liveticker.php @@ -9,7 +9,7 @@ * @wordpress-plugin * Plugin Name: Liveticker (by stklcode) * Description: A simple Liveticker for WordPress. - * Version: 1.2.2 + * Version: 1.3.0 * Author: Stefan Kalscheuer * Author URI: https://www.stklcode.de * Text Domain: stklcode-liveticker