-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 2.0.0 / Update for PHPCompatibility 9.0.0
This update accounts for the following changes: * Ruleset: - Updated sniff error codes for compatibility with PHPCompatibility 9.0.0. - Defer to the dedicated polyfill rulesets for polyfills provided by project dependencies. * Composer: - Require relevant dedicated polyfill ruleset. - Require `dev` the DealerDirect PHPCS Composer plugin to sort out the `installed_paths` so Travis can test the ruleset. - Improved the project description. * Travis/Tests: - Added testing of the ruleset. * Issue template: minor textual tweak. * Readme: - Minor textual improvements to the project description. - Added information about the dependency on the polyfill ruleset. - Removed non-Composer installation instructions. As there are now more dependencies for this project, installation without using Composer, while of course still possible, is no longer _supported_. - Added section about only testing PHP files. - Added changelog for version 2.0.0. Additionally, in all user-facing texts, the abbreviation `PHPCS` has been expanded to read `PHP_CodeSniffer`.
- Loading branch information
Showing
7 changed files
with
90 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/* | ||
* Test file to run PHP_CodeSniffer against to make sure the polyfills are correctly excluded. | ||
* | ||
* This file should only test the polyfills provided by WordPress itself. | ||
* The polyfills provided via dependencies will be tested via the repo containing | ||
* the dedicated ruleset(s) for those dependencies. | ||
*/ | ||
$a = hash_hmac(); | ||
$a = json_encode(); | ||
$a = json_decode(); | ||
$a = hash_equals(); | ||
|
||
echo JSON_PRETTY_PRINT; | ||
$a = json_last_error_msg(); | ||
class ABC implements JsonSerializable {} | ||
|
||
$a = array_replace_recursive(); | ||
$a = is_iterable(); | ||
$a = is_countable(); | ||
|
||
$a = spl_autoload_register(); | ||
$a = spl_autoload_unregister(); | ||
$a = spl_autoload_functions(); | ||
|
||
$a = mysql_to_rfc3339(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters