PHPCompatibility v7.0.6 Release Notes

Release Date: 2016-09-23 // over 7 years ago
  • 👀 See all related issues and PRs in the [7.0.6 milestone].

    ➕ Added

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

    🔄 Changed

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

    ✂ Removed

    • :no_entry_sign: Some redundant code. #232

    🛠 Fixed

    • 🛠 :bug: The EmptyNonVariable sniff would throw false positives for variable variables and for array access with a (partially) variable array index. #212. Fixes #210.
    • 🛠 :bug: 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.
    • 🛠 :bug: ParameterShadowSuperGlobals sniff would report false positives for lowercase/mixed cased variables shadowing superglobals. #218. Fixes #214.
    • :bug: The determineNamespace() utility method now accounts properly for namespaces within scoped declare() statements. #221
    • :books: 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. :clap: