Skip to content

Commit

Permalink
Bump minimum required PHP version to 7.2. (#60714)
Browse files Browse the repository at this point in the history
Bump minimum required PHP version to 7.2.

Co-authored-by: anton-vlasenko <[email protected]>
Co-authored-by: johnbillion <[email protected]>
Co-authored-by: Soean <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: ironprogrammer <[email protected]>
  • Loading branch information
6 people authored Apr 23, 2024
1 parent c082852 commit a9fbf74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
wordpress: [''] # Latest WordPress version.
include:
# Test with the previous WP version.
- php: '7.0'
- php: '7.2'
wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
- php: '7.4'
wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
Expand Down
2 changes: 1 addition & 1 deletion gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/WordPress/gutenberg
* Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality.
* Requires at least: 6.3
* Requires PHP: 7.0
* Requires PHP: 7.2
* Version: 18.2.0-rc.1
* Author: Gutenberg Team
* Text Domain: gutenberg
Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<ruleset name="WordPress Coding Standards for Gutenberg Plugin">
<description>Sniffs for WordPress plugins, with minor modifications for Gutenberg</description>

<!-- Check for cross-version support for PHP 7.0 and higher. -->
<config name="testVersion" value="7.0-"/>
<!-- Check for cross-version support for PHP 7.2 and higher. -->
<config name="testVersion" value="7.2-"/>
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php$</include-pattern>
</rule>
Expand Down

0 comments on commit a9fbf74

Please sign in to comment.