From 4cf25ab607477ed356fd07366a538469d000b31d Mon Sep 17 00:00:00 2001 From: Zack Katz Date: Mon, 26 Aug 2024 14:37:47 -0400 Subject: [PATCH] Add PHP version compatibility checker --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 288b4a5733..0e61f79043 100644 --- a/composer.json +++ b/composer.json @@ -94,7 +94,8 @@ "@prefix_vendor", "@post_update_install", "composer dump-autoload -o" - ] + ], + "compat": "./vendor/bin/phpcs -p ./ ./gravityview.php ./tests --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.2- --ignore=vendor/*,vendor_prefixed/*,node_modules/*" }, "config": { "platform-check": false,