From e061b59ac3c65610654cd8ff17e8dc85f7ff9fdd Mon Sep 17 00:00:00 2001 From: Bart Jaskulski <bjaskulski@protonmail.com> Date: Wed, 30 Oct 2024 14:05:00 +0100 Subject: [PATCH] build: raise required PHP version to 7.4 Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com> --- README.md | 10 +--------- composer.json | 10 ++++------ phpcs.xml.dist | 4 ++-- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c129e94..3495c44 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,9 @@ -[](https://gitlab.com/wpdesk/wp-forms/pipelines) -[](https://gitlab.com/wpdesk/wp-forms/commits/master) -[](https://packagist.org/packages/wpdesk/wp-forms) -[](https://packagist.org/packages/wpdesk/wp-forms) -[](https://packagist.org/packages/wpdesk/wp-forms) -[](https://packagist.org/packages/wpdesk/wp-forms) - WordPress Library for Form integration =================================================== - ## Requirements -PHP 7.0 or later. +PHP 7.4 or later. ## Composer diff --git a/composer.json b/composer.json index 7412e02..9274422 100644 --- a/composer.json +++ b/composer.json @@ -16,19 +16,17 @@ } ], "require": { - "php": ">=7.0", + "php": ">=7.4 || ^8", "ext-curl": "*", "ext-json": "*", "wpdesk/wp-persistence": "^2.0|^3.0", "wpdesk/wp-view": "^2" }, "require-dev": { - "phpunit/phpunit": "<7", - "phpstan/phpstan": "^0.12", + "phpunit/phpunit": "^9", + "wpdesk/phpstan-rules": "^1", "wpdesk/wp-code-sniffer": "^1.2.3", - "10up/wp_mock": "*", - "szepeviktor/phpstan-wordpress": "^0.7.7", - "phpstan/extension-installer": "^1.1" + "10up/wp_mock": "*" }, "autoload": { "psr-4": { diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 1b9bf7a..71f4345 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -34,10 +34,10 @@ <config name="text_domain" value="wp-forms"/> <!-- This value should be aligned with WordPress support version declared in plugin header --> - <config name="minimum_supported_wp_version" value="5.0"/> + <config name="minimum_supported_wp_version" value="6.4"/> <!-- Set value aligned with supported PHP Version for PHPCompatibilityWP check. --> - <config name="testVersion" value="7.0-"/> + <config name="testVersion" value="7.4-"/> <rule ref="WPDeskPlugin"/> -- GitLab