Skip to content

Commit

Permalink
Woo & PHP version Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitguptaindia committed Dec 14, 2023
1 parent 9f6732f commit b3b45d4
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup proper PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
php-version: 7.4
tools: composer

- name: Validate composer.json and composer.lock
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup proper PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
php-version: 7.4
tools: composer

- name: Validate composer.json and composer.lock
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup proper PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
php-version: 7.4
tools: composer

- name: Validate composer.json and composer.lock
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 @@ -84,8 +84,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.3', '>=' ) ) {
throw new Exception( __( 'Accommodation Bookings requires PHP version 7.3 or above.', 'woocommerce-accommodation-bookings' ) );
if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) {
throw new Exception( __( 'Accommodation Bookings requires PHP version 7.4 or above.', 'woocommerce-accommodation-bookings' ) );
}
}
}
2 changes: 1 addition & 1 deletion phpcs-compat.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
<exclude-pattern>tests</exclude-pattern>
<exclude-pattern>assets</exclude-pattern>

<config name="testVersion" value="7.3-"/>
<config name="testVersion" value="7.4-"/>
</ruleset>
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<config name="minimum_supported_wp_version" value="6.2"/>

<!-- ensure we are using language features according to supported PHP versions -->
<config name="testVersion" value="7.3-"/>
<config name="testVersion" value="7.4-"/>
<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.4
* Requires at least: 6.2
* WC tested up to: 8.3
* WC requires at least: 8.1
* Requires PHP: 7.3
* WC tested up to: 8.4
* WC requires at least: 8.2
* Requires PHP: 7.4
*
* Copyright: © 2023 WooCommerce
* License: GNU General Public License v3.0
Expand Down

0 comments on commit b3b45d4

Please sign in to comment.