PHP Mess Detector v2.9.0 Release Notes
Release Date: 2020-09-02 // over 3 years 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
- 🔄 Changed: #529 : Replaced HTML renderer with new "pretty HTML" renderer
- 🔄 Changed: #806 : Changed #44 Change private methods to protected in rules. Make rules extendable
- 🔄 Changed: Internal code improvement #750 #752 #756 #757 #758 #759 #768 #773 #775 #785 #787 #791 #792
🛠 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]'
toPHPMD\[Component]\[Class]
,
as inPHP_PMD_Renderer_HTMLRenderer'
toPHPMD\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:
- @ale7714
- @artem-prozorov
- @eeree
- @frankdekker
- @kylekatarnls
- @MarkVaughn
- @ondrejfuhrer
- @ravage84
- @smuuf
- @sveneld
- @tuc0w
- @tvbeek
- @tuc0w
Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.