github PHPCompatibility/PHPCompatibility 7.0.6
7.0.6: PHP 7.0 Sniffs - update 2016-09-23

latest releases: 9.3.5, 9.3.4, 9.3.3...
7 years ago

PHP 7.0 Sniffs - update 2016-09-23

See all related issues and PRs in the 7.0.6 milestone.

Added

  • ⭐ New stripQuotes() utility method in the PHPCompatibility_Sniff base class to strip quotes which surround text strings in a consistent manner. #224
  • 📚 Readme: Add PHP Version Support section. #225

Changed

  • 📌 The ForbiddenCallTimePassByReference sniff will now also report the deprecation as of PHP 5.3, not just its removal as of PHP 5.4. #203
  • 📌 The NewFunctionArrayDereferencing sniff will now also check method calls for array dereferencing, not just function calls. #229. Fixes #227.
  • ✏️ The NewExecutionDirectives sniff will now throw warnings instead of errors for invalid values encountered in execution directives. #223
  • ✏️ Minor miscellaneous fixes. #231
  • ♻️ Various (minor) refactoring for improved performance and sniff accuracy. #219, #203
  • ♻️ Defer to upstream findImplementedInterfaceNames() utility method when it exists. #222
  • 🔧 Exclude the test files from analysis by Scrutinizer CI. #230

Removed

  • 🚫 Some redundant code. #232

Fixed

  • 🐛 The EmptyNonVariable sniff would throw false positives for variable variables and for array access with a (partially) variable array index. #212. Fixes #210.
  • 🐛 The NewFunctionArrayDereferencing sniff would throw false positives for lines of code containing both a function call as well as square brackets, even when they were unrelated. #228. Fixes #226.
  • 🐛 ParameterShadowSuperGlobals sniff would report false positives for lowercase/mixed cased variables shadowing superglobals. #218. Fixes #214.
  • 🐛 The determineNamespace() utility method now accounts properly for namespaces within scoped declare() statements. #221
  • 📚 Readme: Logo alignment in the Credits section. #233

Credits

Thanks go out to Jason Stallings, Juliette Reinders Folmer and Mark Clements for their contributions to this version. 👏

Don't miss a new PHPCompatibility release

NewReleases is sending notifications on new releases.