Skip to content

Commit b285408

Browse files
committed
Remove phpcompatibility/php-compatibility
1 parent 6c710a7 commit b285408

6 files changed

Lines changed: 6 additions & 211 deletions

File tree

.github/script.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ EXPECTED=(
3838
AcquiaPHPStrict
3939
Drupal
4040
DrupalPractice
41-
PHPCompatibility
4241
)
4342
echo "$INSTALLED"
4443
for STANDARD in "${EXPECTED[@]}"; do

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Acquia Coding Standards for PHP includes a selection of sniffs from the followin
1414

1515
* [Drupal Code Sniffer](https://packagist.org/packages/drupal/coder) encapsulates [Drupal coding standards](https://www.drupal.org/coding-standards ) and best practices for module development.
1616
* [PHP_CodeSniffer](https://packagist.org/packages/squizlabs/php_codesniffer) itself contains several broadly applicable rulesets.
17-
* [PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility) checks for PHP cross-version compatibility with all supported language versions.
1817
* [Slevomat Coding Standard](https://github.com/slevomat/coding-standard) provides functional (safety and behavior), cleaning (dead code), and formatting (consistent look) sniffs.
1918

2019
## Rulesets
@@ -39,6 +38,8 @@ There are four permutations of these guidelines, leading to four rulesets to cho
3938
composer require --dev acquia/coding-standards
4039
```
4140

41+
If you want to add PHP cross-version compatibility checks, we suggest [PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility).
42+
4243
1. Inform PHP CodeSniffer of the location of the standard and its dependencies:
4344

4445
* It is strongly recommended that you use a Composer plugin to handle this for you, e.g., [`DealerDirect/phpcodesniffer-composer-installer`](https://github.com/DealerDirect/phpcodesniffer-composer-installer):
@@ -55,7 +56,7 @@ There are four permutations of these guidelines, leading to four rulesets to cho
5556
"scripts": {
5657
"post-install-cmd": "@install-coding-standards",
5758
"post-update-cmd" : "@install-coding-standards",
58-
"install-coding-standards": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/acquia/coding-standards/src/Standards,vendor/drupal/coder/coder_sniffer,vendor/phpcompatibility/php-compatibility,vendor/slevomat/coding-standard"
59+
"install-coding-standards": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/acquia/coding-standards/src/Standards,vendor/drupal/coder/coder_sniffer,vendor/slevomat/coding-standard"
5960
}
6061
}
6162
```

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
],
1919
"require": {
2020
"drupal/coder": "^8.3",
21-
"phpcompatibility/php-compatibility": "^10.0.0-alpha1",
2221
"slevomat/coding-standard": "^8.4",
2322
"squizlabs/php_codesniffer": "^3.7"
2423
},
2524
"suggest": {
2625
"brainmaestro/composer-git-hooks": "Easily manage Git hooks in your composer config.",
27-
"dealerdirect/phpcodesniffer-composer-installer": "Automatically install PHP_CodeSniffer coding standards (rulesets)."
26+
"dealerdirect/phpcodesniffer-composer-installer": "Automatically install PHP_CodeSniffer coding standards (rulesets).",
27+
"phpcompatibility/php-compatibility": "Check for PHP cross-version compatibility."
2828
},
2929
"config": {
3030
"allow-plugins": {

composer.lock

Lines changed: 1 addition & 184 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Standards/AcquiaDrupalMinimal/ruleset.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,6 @@
1313
<exclude name="Drupal.Files.TxtFileLineLength.TooLong"/>
1414
</rule>
1515

16-
<!-- PHP Compatibility sniffs -->
17-
<!-- The lowest version of PHP supported by both Drupal and Acquia Cloud.
18-
@see https://www.drupal.org/docs/8/system-requirements/php-requirements
19-
@see https://docs.acquia.com/acquia-cloud/arch/tech-platform/
20-
For instructions on overriding this value in your project,
21-
@see https://github.com/acquia/coding-standards-php/pull/37 -->
22-
<config name="testVersion" value="7.4-"/>
23-
<rule ref="PHPCompatibility">
24-
<exclude name="PHPCompatibility.Extensions.RemovedExtensions.famRemoved"/>
25-
</rule>
26-
2716
<!-- Relax rules for automated tests -->
2817
<rule ref="Drupal.Arrays.Array.LongLineDeclaration">
2918
<exclude-pattern>tests/*</exclude-pattern>

src/Standards/AcquiaPHPMinimal/ruleset.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616
<exclude-pattern>*.(md|txt|yml)</exclude-pattern>
1717
</rule>
1818

19-
<!-- PHP Compatibility sniffs -->
20-
<!-- The lowest version of PHP supported by both Drupal and Acquia Cloud.
21-
@see https://www.drupal.org/docs/8/system-requirements/php-requirements
22-
@see https://docs.acquia.com/acquia-cloud/arch/tech-platform/
23-
For instructions on overriding this value in your project,
24-
@see https://github.com/acquia/coding-standards-php/pull/37 -->
25-
<config name="testVersion" value="7.4-"/>
26-
<rule ref="PHPCompatibility">
27-
<exclude name="PHPCompatibility.Extensions.RemovedExtensions.famRemoved"/>
28-
</rule>
29-
3019
<!-- Apply indentation rules to comments and arrays. -->
3120
<!-- @see https://github.com/squizlabs/PHP_CodeSniffer/issues/2314 -->
3221
<!-- @see https://github.com/squizlabs/PHP_CodeSniffer/issues/1235 -->

0 commit comments

Comments
 (0)