diff --git a/composer.json b/composer.json index c11e7771..7197d7f1 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,7 @@ "php": ">=7.2.24", "behat/behat": "^v3.15.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || ^0.5 || ^0.6.2 || ^0.7.1 || ^1.0.0", + "johnbillion/wp-compat": "^0.3.1 || ^1.5", "php-parallel-lint/php-console-highlighter": "^1.0", "php-parallel-lint/php-parallel-lint": "^1.3.1", "phpcompatibility/php-compatibility": "^10.0", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 427c1a52..373d903e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -20,3 +20,5 @@ parameters: - WP_DEBUG_DISPLAY strictRules: strictCalls: true + WPCompat: + requiresAtLeast: '4.9' \ No newline at end of file