Skip to content

7.1.5: PHP 7.1 Sniffs - update 2017-07-17

Compare
Choose a tag to compare
@wimg wimg released this 16 Jul 23:13
· 2932 commits to develop since this release

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. πŸ‘