Releases: phpmd/phpmd
PHPMD 2.9.1
Fixed
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.
PHPMD 2.9.0
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.
PHPMD 2.8.2
Fixed
- Fixed #732: Added __serialize and __unserialize to list of ignored methods for camelCase rule.
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.
PHPMD 2.8.1
Fixed
- Fixed PHP 7.4 unit tests compatibility
- Improved documentation
- Automated website generation and PHAR publishing
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.
PHPMD 2.8.0
Added
- Required at least pdepend/pdepend 2.6:
- Added PHP 7.1 to 7.3 syntax support
- Added Symfony 5 support
- #571: Added
ignore-namespaces
property toDevelopmentCodeFragment
rule - #595: Added a renderer which writes an ansi report string
Fixed
- Improved performances by disabling XDebug if in use
- #657 Fix IfStatementAssignment violation message
- #667: Be sure the phar file use the latest possible versions of dependencies (like pdepend)
- #661: Fix IfStatementAssignment thrown incorrectly
- #676: Handle @SuppressWarnings on each method for CountInLoop
- #659: Update RuleSetFactory to be PHP 7.4 compatible
- Update different parts of the documentation. #595 #645 #646 #648 #652 #665 #679 #691
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:
- @raa0121
- @AJenbo
- @DannyvdSluijs
- @eeree
- @Jir4
- @poplary
- @SailorMax
- @tariq86
- @PtrTn
- @wirwolf
- @tvbeek
- @szepeviktor
- @kylekatarnls
- @ravage84
Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.
PHPMD 2.8.0-beta.2
Added
- Required at least pdepend/pdepend 2.6:
- Added PHP 7.1 to 7.3 syntax support
- Added Symfony 5 support
- #571: Added
ignore-namespaces
property toDevelopmentCodeFragment
rule - #595: Added a renderer which writes an ansi report string
Fixed
- Improved performances by disabling XDebug if in use
- #657 Fix IfStatementAssignment violation message
- #667: Be sure the phar file use the latest possible versions of dependencies (like pdepend)
- #661: Fix IfStatementAssignment thrown incorrectly
- #676: Handle @SuppressWarnings on each method for CountInLoop
- #659: Update RuleSetFactory to be PHP 7.4 compatible
- Update different parts of the documentation. #595 #645 #646 #648 #652 #665 #679 #691
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:
- @raa0121
- @AJenbo
- @DannyvdSluijs
- @eeree
- @Jir4
- @poplary
- @SailorMax
- @tariq86
- @PtrTn
- @wirwolf
- @tvbeek
- @szepeviktor
- @kylekatarnls
- @ravage84
Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.
PHPMD 2.8.0-beta.1
Added
- #571: Added
ignore-namespaces
property toDevelopmentCodeFragment
rule - #595: Added a renderer which writes an ansi report string
Fixed
- Improved performances by disabling XDebug if in use
- #657 Fix IfStatementAssignment violation message
- #667: Be sure the phar file use the latest possible versions of dependencies (like pdepend)
- #661: Fix IfStatementAssignment thrown incorrectly
- #676: Handle @SuppressWarnings on each method for CountInLoop
- #659: Update RuleSetFactory to be PHP 7.4 compatible
- Update different parts of the documentation. #595 #645 #646 #648 #652 #665 #679 #691
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:
- @raa0121
- @AJenbo
- @DannyvdSluijs
- @eeree
- @Jir4
- @poplary
- @SailorMax
- @tariq86
- @PtrTn
- @wirwolf
- @tvbeek
- @szepeviktor
- @kylekatarnls
- @ravage84
Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.
PHPMD 2.7.0
The new maintainer team of PHPMD is pleased to announce its first minor release PHP Mess Detector version 2.7.0.
This contains all the new features, improvements and fixes from over 250 commits from two and a half years since 2.6.0.
Please, also take note of a backwards incompatible property renaming in the CouplingBetweenObjects rule.
Added
- #472: Added rule for assignment within conditional (IfStatementAssignment)
- #490: Added rule for count in loop (CountInLoop)
- #484: Added rule for duplicated array key (DuplicatedArrayKey)
- #476: Added rule for empty catch block (EmptyCatchBlock)
- #636: Added rule for missing import (MissingImport)
- #443: Added support for compound variables in UnusedLocalVariable rule
- #329: Added support to whitelist variables in the UnusedLocalVariable rule
- #405: Added JSON output format
- #525: Added new options to CLI (min-priority, minimum-priority, report-file, input-file, not-strict)
- #579: Added support for setting the maximum execution priority through CLI (max-priority, maximum-priority, maximumpriority)
- #489: Added new predefined variables to AbstractLocalVariable base rule
Fixed
- #482: Renamed minimum property to maximum in CouplingBetweenObjects rule (backwards incompatible)
- #626: Fixed special characters escaping in violation description for XML output
- #378: Fixed warning/error when trying to export to a non-existing path
- #575: Fixed UnusedFormalParameter false positive in string compound variable
- #480: Fixed "Start tag expected, '<' not found" error
- #494: Fixed UnusedPrivateField false positive
- #583: Changed LongNaming rule to apply on private fields too
- #572: Added support for both
@SuppressWarnings
and@suppressWarnings
annotation cases
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:
- @eeree
- @DmitryNaum
- @john-whitley
- @JulienPalard
- @ravage84
- @exploitfate
- @rydroid
- @tominventisbe
- @dxops
- @jaymoulin
- @avmnu-sng
- @HappyHippyHippo
- @vt-iwamoto
- @choult
- @liviascapin
- @kylekatarnls
- @JeroenDeDauw
- @emirb
- @tvbeek
- @OndraM
- @Marius786
- @BenjaminPaap
- @fbertolotti
- @gbirke
- @MarkVaughn
- @rafalwrzeszcz
- @mindplay-dk
- @KOLANICH
- @schinkel
- @jhoff
- @EvgenyOrekhov
- @1ma
- @duncancumming
- @edhgoose
- @mermshaus
- @manuelpichler
- @richvigorito
Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.
PHPMD 2.6.1 released
The new maintainer team of PHPMD is pleased to announce PHP Mess Detector version 2.6.1.
This is a patch release for the 2.6.x release branch.
Changes
You can expect the following changes in this release:.
- Build the PHAR file on Travis-CI and publish it to GitHub releases #616
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.