PHPCompatibility v7.1.5 Release Notes

Release Date: 2017-07-16 // almost 7 years ago
  • โž• Added

    ๐Ÿฑ โญ๏ธ The NewKeywords sniff will now also sniff for yield from which was introduced in PHP 7.0. #477. Fixes #476
    ๐Ÿฑ ๐Ÿ“š The LGPL-3.0 license. #447

    ๐Ÿ”„ Changed

    ๐Ÿฑ โช The NewExecutionDirectives sniff will now also report on execution directives when used in combination with PHPCS 2.0.0-2.3.3. #451
    ๐Ÿฑ โช The getMethodParameters() utility method will no longer break when used with PHPCS 1.5.x < 1.5.6. This affected a number of sniffs. #452
    ๐Ÿฑ โช The inUseScope() utility method will no longer break when used with PHPCS 2.0.0 - 2.2.0. This affected a number of sniffs. #454
    ๐ŸŽ โ™ป๏ธ Various (minor) refactoring for improved performance and sniff accuracy. #443, #474
    ๐Ÿฑ โœ๏ธ Renamed a test file for consistency. #453
    ๐Ÿ’… ๐Ÿ”ง Code style clean up. #429
    ๐Ÿฑ ๐Ÿ”ง Prevent Composer installing PHPCS 3.x. PHPCS 3.x is not (yet) supported by the PHPCompatibility standard, but will be in the near future. #444
    ๐Ÿ’… ๐Ÿ’š The code base will now be checked for consistent code style during build testing. #429
    ๐Ÿฑ ๐Ÿ’š The sniffs are now also tested against HHVM for consistent results. Note: the sniffs do not contain any HHVM specific checks nor is there any intention to add them at this time. #450
    ๐Ÿฑ ๐Ÿ“š Made it explicit that - at this moment - PHPCS 3.x is not (yet) supported. #444
    ๐Ÿฑ ๐Ÿ“š Minor improvements to the Readme. #448, #449, #468
    ๐Ÿฑ ๐Ÿ“š Minor improvements to the Contributing guidelines. #467

    โœ‚ Removed

    ๐Ÿšซ The DefaultTimeZoneRequired sniff. This sniff was checking server settings rather than code. #458. Fixes #457
    ๐Ÿšซ The NewMagicClassConstant sniff as introduced in v 7.1.4 contained two additional checks for not strictly compatibility related issues. One of these was plainly wrong, the other opinionated. Both have been removed. #442. Fixes #436

    ๐Ÿ›  Fixed

    ๐Ÿฑ ๐Ÿ› NewClass sniff: was reporting an incorrect introduction version number for a few of the Exception classes. #441. Fixes #440.
    ๐Ÿฑ ๐Ÿ› ForbiddenBreakContinueVariableArguments sniff: was incorrectly reporting an error if the break or continue was followed by a PHP closing tag (breaking out of PHP). #462. Fixes #460
    ๐Ÿฑ ๐Ÿ› ForbiddenGlobalVariableVariable sniff: was incorrectly reporting an error if the global statement was followed by a PHP closing tag (breaking out of PHP). #463.
    ๐Ÿฑ ๐Ÿ› DeprecatedFunctions sniff: was reporting false positives for classes using the same name as a deprecated function. #465. Fixes #464

    Credits

    ๐Ÿฑ Thanks go out to Juliette Reinders Folmer and Mark Clements for their contributions to this version. ๐Ÿ‘