@wimg wimg released this Jul 16, 2017 · 502 commits to master since this release

Assets 2

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. 👏