From 90134d04ab3a5f135029ff9493dd4803e5856e2b Mon Sep 17 00:00:00 2001 From: sect Date: Mon, 2 Dec 2024 18:04:25 +0900 Subject: [PATCH 1/2] chore: add missing declare(strict_types=1) --- admin/class-recursivetable.php | 2 ++ functions/functions.php | 2 ++ google-spreadsheet-to-db.php | 2 ++ ...ass-google-spreadsheet-to-db-activator.php | 2 ++ .../class-google-spreadsheet-to-db-query.php | 22 ++++++++++--------- includes/index.php | 2 ++ includes/save.php | 2 ++ 7 files changed, 24 insertions(+), 10 deletions(-) diff --git a/admin/class-recursivetable.php b/admin/class-recursivetable.php index 4f9f35c..7b38311 100644 --- a/admin/class-recursivetable.php +++ b/admin/class-recursivetable.php @@ -12,6 +12,8 @@ * @subpackage Google_Spreadsheet_to_DB/admin */ +declare(strict_types=1); + /** * The core plugin class. * diff --git a/functions/functions.php b/functions/functions.php index b3ded10..7fc6c05 100644 --- a/functions/functions.php +++ b/functions/functions.php @@ -20,6 +20,8 @@ * @subpackage Google_Spreadsheet_to_DB/functions */ +declare(strict_types=1); + if ( file_exists( plugin_dir_path( __FILE__ ) . 'composer/vendor/autoload.php' ) ) { require_once plugin_dir_path( __FILE__ ) . 'composer/vendor/autoload.php'; } diff --git a/google-spreadsheet-to-db.php b/google-spreadsheet-to-db.php index f295526..6366d37 100644 --- a/google-spreadsheet-to-db.php +++ b/google-spreadsheet-to-db.php @@ -14,6 +14,8 @@ * @package Google_Spreadsheet_to_DB */ +declare(strict_types=1); + $google_ss2db_minimalrequiredphpversion = '8.0'; global $wpdb; diff --git a/includes/class-google-spreadsheet-to-db-activator.php b/includes/class-google-spreadsheet-to-db-activator.php index a5f9eea..9c72e17 100755 --- a/includes/class-google-spreadsheet-to-db-activator.php +++ b/includes/class-google-spreadsheet-to-db-activator.php @@ -9,6 +9,8 @@ * @subpackage Google_Spreadsheet_to_DB/functions */ +declare(strict_types=1); + /** * Fired during plugin activation. * diff --git a/includes/class-google-spreadsheet-to-db-query.php b/includes/class-google-spreadsheet-to-db-query.php index ff2404e..e5af41d 100755 --- a/includes/class-google-spreadsheet-to-db-query.php +++ b/includes/class-google-spreadsheet-to-db-query.php @@ -1,14 +1,16 @@ Date: Fri, 13 Dec 2024 11:06:14 +0900 Subject: [PATCH 2/2] ci: add SVN installation step for WordPress test suite in GitHub Actions --- .github/workflows/phpunit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 969d45d..14212c4 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -42,6 +42,9 @@ jobs: - name: Check PHP Version run: php -v + - name: Install SVN + run: sudo apt-get update && sudo apt-get install -y subversion + - name: Composer install run: composer install --optimize-autoloader --prefer-dist