Skip to content

Releases: phpmd/phpmd

PHPMD 2.9.1

23 Sep 22:28
ce10831
Compare
Choose a tag to compare

Fixed

  • Fixed #714: Improved static member detection
  • Fixed #816: Fixed undefined index referring

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

02 Sep 09:13
2a34657
Compare
Choose a tag to compare

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.

PHPMD 2.8.2

24 Feb 14:40
714629e
Compare
Choose a tag to compare

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

27 Dec 11:09
5664b95
Compare
Choose a tag to compare

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

24 Dec 09:32
9b9fbb3
Compare
Choose a tag to compare

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 to DevelopmentCodeFragment 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:

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

PHPMD 2.8.0-beta.2

16 Dec 12:34
9b9fbb3
Compare
Choose a tag to compare
PHPMD 2.8.0-beta.2 Pre-release
Pre-release

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 to DevelopmentCodeFragment 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:

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

PHPMD 2.8.0-beta.1

04 Dec 06:52
f5f1bc8
Compare
Choose a tag to compare
PHPMD 2.8.0-beta.1 Pre-release
Pre-release

Added

  • #571: Added ignore-namespaces property to DevelopmentCodeFragment 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:

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

PHPMD 2.7.0

30 Jul 21:22
a05a999
Compare
Choose a tag to compare

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

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:

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

PHPMD 2.6.1 released

05 Jul 23:41
Compare
Choose a tag to compare

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.