PHP Mess Detector v2.9.0 Release Notes

Release Date: 2020-09-02 // over 1 year ago
  • ➕ Added

    • ➕ Added #496: Add rule for PHP's @ operator
    • ➕ Added #737: Allowing custom exclusion for StaticAccess by extending the class
    • ➕ Added #749: Add allow-underscore option for CamelCaseParameterName & CamelCaseVariableName
    • ➕ Added #747: Long variable subtract suffix
    • ➕ Added #763 via #765: Added rules LongClassName and ShortClassName

    🔄 Changed

    🛠 Fixed

    • 🛠 Fixed #743: Output for version
    • 🛠 Fixed #754: Fixed #720 undefined variable in foreach when passed by reference
    • 🛠 Fixed #764: Fixed #718 Handle anonymous class in "undefined variable" rule
    • 🛠 Fixed #770: Fixed #769 Handle deconstruction assignation for undefined variable
    • 🛠 Fixed #781: Fixed #714 static:: and self:: properties access
    • 🛠 Fixed #784: Fixed #672 Handle passing-by-reference in native PHP functions
    • 🛠 Fixed #793: Fixed #580 Raise UnusedFormalParameter instead UnusedLocalVariable for unused closure parameter
    • 🛠 Fixed #794: Fixed #540 Detect unused variable declared multiple times
    • 🛠 Fixed #805: Fixed #802 Prevent an error with nested arrays
    • 🛠 Fixed #807: Fixed #790 Fix for short variables rule inside foreach statements
    • 🛠 Fixed #809: Fixed #808 Ignore rule path for supression annotation
    • 📚 Updated different parts of the documentation. #717 #736 #748 #811

    🗄 Deprecated

    • 👀 Deprecated all the PHPMD exceptions that aren't part of the PHPMD\Exceptions namespace. See #775

    A potential BC change:

    👍 With the clean-up in #768 we have a potential BC break in an unsupported part that we want to give attention for.

    The class aliases PHP_PMD_* used for PHPMD 1.x backwards PEAR compatibility were removed. If you happen to still depend on these, please adjust your code like so:

    From PHP_PMD_[Component]_[Class]' to PHPMD\[Component]\[Class],
    as in PHP_PMD_Renderer_HTMLRenderer' to PHPMD\Renderer\HTMLRenderer.
    👀 > See #768

    🚀 Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

    🚀 Contributors to this release

    🚀 We would like to thank all the contributors that helped make this release possible:

    Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.