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 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 @@