Skip to content

Commit

Permalink
Merge pull request #361 from woocommerce/tweak/358
Browse files Browse the repository at this point in the history
Bump WooCommerce "tested up to" version 8.0
  • Loading branch information
vikrampm1 authored Sep 1, 2023
2 parents cbb4c4a + a9fb7be commit 5980e80
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 7.0
php-version: 7.3
tools: composer:v2
coverage: none
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 7.0
php-version: 7.3
tools: composer:v2
coverage: none
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions includes/class-wc-accommodation-dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public static function check_dependencies() {
throw new Exception( __( 'Accommodation Bookings requires Bookings version 1.9+.', 'woocommerce-accommodation-bookings' ) );
}

if ( ! version_compare( PHP_VERSION, '7.0', '>=' ) ) {
throw new Exception( __( 'Accommodation Bookings requires PHP version 7.0 or above.', 'woocommerce-accommodation-bookings' ) );
if ( ! version_compare( PHP_VERSION, '7.3', '>=' ) ) {
throw new Exception( __( 'Accommodation Bookings requires PHP version 7.3 or above.', 'woocommerce-accommodation-bookings' ) );
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"archive": "composer archive --file=$npm_package_name --format=zip",
"postarchive": "rm -rf $npm_package_name && unzip $npm_package_name.zip -d $npm_package_name && rm $npm_package_name.zip && zip -r $npm_package_name.zip $npm_package_name && rm -rf $npm_package_name",
"makepot": "wp i18n make-pot . --exclude=tests,assets",
"phpcompat": "./vendor/bin/phpcs *.php includes -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.0-",
"phpcompat": "./vendor/bin/phpcs *.php includes -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.3-",
"lint:js": "wp-scripts lint-js --ext=js",
"lint:js-fix": "wp-scripts lint-js --ext=js --fix",
"lint:style": "wp-scripts lint-style",
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<config name="minimum_supported_wp_version" value="5.6"/>

<!-- ensure we are using language features according to supported PHP versions -->
<config name="testVersion" value="7.0-"/>
<config name="testVersion" value="7.3-"/>
<rule ref="PHPCompatibilityWP" />
<rule ref="WordPress.WP.I18n">
<properties>
Expand Down
6 changes: 3 additions & 3 deletions woocommerce-accommodation-bookings.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* Domain Path: /languages
* Tested up to: 6.2
* Requires at least: 6.1
* WC tested up to: 7.8
* WC requires at least: 7.2
* Requires PHP: 7.0
* WC tested up to: 8.0
* WC requires at least: 7.8
* Requires PHP: 7.3
*
* Copyright: © 2023 WooCommerce
* License: GNU General Public License v3.0
Expand Down

0 comments on commit 5980e80

Please sign in to comment.