diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index a3b05c54..54160855 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -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 diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index fff7df08..51e2a651 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -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 diff --git a/includes/class-wc-accommodation-dependencies.php b/includes/class-wc-accommodation-dependencies.php index eab20537..0959d10b 100644 --- a/includes/class-wc-accommodation-dependencies.php +++ b/includes/class-wc-accommodation-dependencies.php @@ -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' ) ); } } } diff --git a/package.json b/package.json index 38ae4a9c..e39714a2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/phpcs.xml b/phpcs.xml index b2be3b8e..46e0c2f8 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -17,7 +17,7 @@ - + diff --git a/woocommerce-accommodation-bookings.php b/woocommerce-accommodation-bookings.php index eabe48e8..1d21ec7c 100644 --- a/woocommerce-accommodation-bookings.php +++ b/woocommerce-accommodation-bookings.php @@ -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