Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump minimum required PHP version to 7.4 #7195

Merged
merged 4 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/install-php/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
php-version:
description: 'The PHP version to use'
required: false
default: '7.3'
default: '7.4'

extensions:
description: 'The PHP extensions to use'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.3, 8.1]
php: [7.4, 8.1]
steps:
- name: Download Build Artifact
uses: actions/download-artifact@v3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
php-version: '7.4'
tools: composer
coverage: none

Expand Down Expand Up @@ -59,16 +59,16 @@ jobs:
matrix:
wp: ['latest']
wpmu: [0]
php: ['7.3', '7.4', '8.0']
php: ['7.4', '8.0']
include:
- php: 7.3
- php: 7.4
wp: '6.1'
- php: 7.3
- php: 7.4
wp: '6.2'
- php: 7.3
- php: 7.4
wp: latest
wpmu: 1
- php: 7.3
- php: 7.4
wp: nightly
env:
WP_VERSION: ${{ matrix.wp }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: true
max-parallel: 10
matrix:
php: ['7.3', '8.2']
php: ['7.4', '8.2']
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions changelog/update-php-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Bump minimum required PHP version to 7.4
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"woocommerce/action-scheduler": "3.6.2"
},
"require-dev": {
"php": "^7.3 || ^8",
"php": "^7.4 || ^8",
"automattic/jetpack-changelogger": "3.3.5",
"bamarni/composer-bin-plugin": "1.8.2",
"dealerdirect/phpcodesniffer-composer-installer": "1.0.0",
Expand Down Expand Up @@ -95,7 +95,7 @@
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "7.3"
"php": "7.4"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
Expand Down
4 changes: 2 additions & 2 deletions includes/class-sensei-dependency-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* @since 2.0.0
*/
class Sensei_Dependency_Checker {
const MINIMUM_PHP_VERSION = '7.3';
const FUTURE_MINIMUM_PHP_VERSION = '7.3';
const MINIMUM_PHP_VERSION = '7.4';
const FUTURE_MINIMUM_PHP_VERSION = '7.4';

/**
* Checks for our PHP version requirement.
Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<exclude-pattern type="relative">^tmp/*</exclude-pattern>

<!-- Configs -->
<config name="minimum_supported_wp_version" value="5.6" />
<config name="testVersion" value="7.3-"/>
<config name="minimum_supported_wp_version" value="6.1" />
<config name="testVersion" value="7.4-"/>

<!-- Rules -->
<rule ref="PHPCompatibilityWP"/>
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: automattic, aaronfc, burtrw, donnapep, fjorgemota, gabrielcaires,
Tags: lms, eLearning, teach, online courses, woocommerce
Requires at least: 6.1
Tested up to: 6.3
Requires PHP: 7.3
Requires PHP: 7.4
Stable tag: 4.17.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -197,4 +197,4 @@ Community members have translated the free Sensei LMS plugin [into 18 languages]
- Fix Continue Course block not redirecting to first lesson in some cases [#6997](https://github.com/Automattic/sensei/pull/6997)
- Fix emails not using the From Name/Email settings [#6968](https://github.com/Automattic/sensei/pull/6968)
- Fix PHP 8.1 autovivification of falsy value deprecation message [#7015](https://github.com/Automattic/sensei/pull/7015)
- Removed Beta label from Editor Menu [#6989](https://github.com/Automattic/sensei/pull/6989)
- Removed Beta label from Editor Menu [#6989](https://github.com/Automattic/sensei/pull/6989)
2 changes: 1 addition & 1 deletion sensei-lms.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* Requires at least: 6.1
* Tested up to: 6.3
* Requires PHP: 7.3
* Requires PHP: 7.4
* Text Domain: sensei-lms
* Domain path: /lang/
*/
Expand Down
Loading