Skip to content

Releases: doctrine/coding-standard

v3.0.0

06 Feb 11:13
3.0.0
2f3a075
Compare
Choose a tag to compare

This release introduces a few new additional checks that are enabled by default:

  • Use the "Null Coalesce" (??) operator where applicable
  • Enforce usage of parentheses together with the new statement
  • Enforce early return where applicable
  • Forbid usage of core function aliases

Total issues resolved: 7

v2.1.0

19 Jan 15:36
2.1.0
9c29b04
Compare
Choose a tag to compare

This release adds sniffs to import global functions and constants.

Total issues resolved: 3

Improvement

2.0.0

04 Jan 23:34
d9fe763
Compare
Choose a tag to compare

Version 2.0.0 incorporates many new sniffs for code safety, predictable behavior and consistent code look, Most notably:

  • no more useless annotations that i.e. duplicate Git information,
  • space after not operator (!),
  • short arrays only,
  • no assignments in conditions,
  • alphabetically sorted uses,
  • no long type names (int vs. integer),
  • and more.

We're also moving towards PHP 7.1/7.2 standards and strict code. As part of this, we're now including checks for:

  • declare(strict_types=1) in every file,
  • native scalar types where possible,
  • scalar hints in parameter and return types,
  • defining the contents of iterable types in phpDoc,
  • no redundant phpDoc annotations when types are expressed natively,

Changelog:

  • Total issues resolved: 0
  • Total pull requests resolved: 4
  • Total contributors: 2

Improvement

1.0.0

20 Aug 01:40
1.0.0
d0af8ac
Compare
Choose a tag to compare

This release makes this project compatible with PHPCS v3.0 and implements some missing sniffs (also making sure that we can apply automatic fixes with PHPCBF).

Total issues resolved: 1

0.1.0

23 Jan 15:14
0.1.0
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

First development release.

This is an intermediate release aimed at people relying on PHP_CodeSniffer 1.*. It is required in order for us to transition to PHP_CodeSniffer 2.* support.