You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 3.0.0-alpha1 / Update for PHPCompatibility 10.0.0-alpha1
This update accounts for the following changes:
* Ruleset:
**_No ruleset updates needed._**
* Composer:
- Update the version for the PHPCompatibility dependency.
The `@dev` version number suffix should ensure that the PHPCompatibility 10.0.0-alpha1 version can be installed, even if the project minimum stability does not specifically allow for dev versions.
- Remove the DealerDirect Composer PHPCS plugin dependency.
This plugin will now automatically be installed as it is a dependency of PHPCSUtils and therefore of PHPCompatibility itself.
Not having it set as an explicit dependency here, will prevent potential future conflicts with the supported versions of the plugin.
- Removed the `suggest` section.
The DealerDirect plugin no longer needs to be suggested and after two years, people should have gotten the message about using the `roave/security-advisories`.
* Readme:
- Updated the minimum PHP and PHPCS requirements.
- Updated the installation instructions for the 3.0.0-alpha1 release (being a dev release).
- Updated the installation instructions to no longer mention adding a Composer plugin to sort out the PHPCS `installed_paths`.
- Added upgrade instructions.
- Added section about funding.
- Use link list for links used multiple times.
- Minor other tweaks after critical read-through of the README.
* CI:
- Continue testing against `dev-develop`.
- Prevent builds failing on low PHP versions on the recommendation to use a more recent PHP version.
@@ -12,36 +12,39 @@ Using PHPCompatibilityJoomla, you can analyse the codebase of a Joomla-based pro
12
12
13
13
A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects based on the Joomla CMS.
14
14
15
-
This Joomla specific ruleset prevents false positives from the [PHPCompatibility standard](https://github.com/PHPCompatibility/PHPCompatibility) by excluding back-fills and poly-fills which are provided by Joomla.
15
+
This Joomla specific ruleset prevents false positives from the [PHPCompatibility standard][PHPCompatibility] by excluding back-fills and polyfills which are provided by Joomla.
16
16
17
17
18
-
## Requirements
18
+
## Funding
19
+
20
+
**This project needs funding.**
21
+
22
+
The project team has spend thousands of hours creating and maintaining the PHPCompatibility packages. This is unsustainable without funding.
[Composer] will automatically install the project dependencies and register the external rulesets with PHP_CodeSniffer using the [Composer PHPCS plugin].
41
43
42
-
If you already have a Composer PHP_CodeSniffer plugin installed, run:
If all went well, you will now see that the `PHPCompatibility`, `PHPCompatibilityJoomla` and several other PHPCompatibility standards are installed for PHP_CodeSniffer.
52
55
53
56
57
+
## Upgrade instructions
58
+
59
+
To upgrade this package, run the following command:
> If you have a _root_ requirement in your project for one of the packages used by this project, you may need to update with `--with-all-dependencies` instead.
66
+
67
+
54
68
## How to use
55
69
56
-
Now you can use the following command to inspect your code:
70
+
You can now use the following command to inspect your code:
For more detailed information about setting the `testVersion`, see the README of the generic [PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions) standard.
87
+
For more detailed information about setting the `testVersion`, see the README of the generic [PHPCompatibility][PHPCompatibility-testVersion] standard.
74
88
75
89
76
90
### Testing PHP files only
77
91
78
-
By default PHP_CodeSniffer will analyse PHP, JavaScript and CSS files. As the PHPCompatibility sniffs only target PHP code, you can make the run slightly faster by telling PHP_CodeSniffer to only check PHP files, like so:
92
+
By default PHP_CodeSniffer < 4.0 will analyse PHP, JavaScript and CSS files. As the PHPCompatibility sniffs only target PHP code, you can make the run slightly faster by telling PHP_CodeSniffer to only check PHP files, like so:
All code within the PHPCompatibility organisation is released under the GNU Lesser General Public License (LGPL). For more information, visit <https://www.gnu.org/licenses/lgpl-3.0.html>.
0 commit comments