Skip to content

Releases: ramsey/coding-standard

2.2.0

18 Mar 17:24
2.2.0
71e0e56
Compare
Choose a tag to compare
  • Set minimum PHP version to 8.1.

2.1.0

14 Jan 20:17
2.1.0
320fe10
Compare
Choose a tag to compare

Changed

  • Bump phpcsstandards/phpcsextra and dealerdirect/phpcodesniffer-composer-installer to their stable 1.0 releases.

2.0.3

05 Aug 18:04
2.0.3
4d2d6e9
Compare
Choose a tag to compare

Fixed

  • Allow comments to run longer than 120 characters.

2.0.2

08 Jul 01:08
2.0.2
11646fd
Compare
Choose a tag to compare

Fixed

  • Allow doc comments without variable names above return statements.

2.0.1

01 Jul 01:49
2.0.1
c0d3cd8
Compare
Choose a tag to compare

Fixed

  • Ignore the IncorrectWhitespaceBeforeDeclare error emitted by the SlevomatCodingStandard.TypeHints.DeclareStrictTypes sniff.

    In my personal projects, I usually have 2 newlines before the declare statement. One before the file header comment and one after. However, in tests, I have no file header comment, so there is only 1 newline before the declare statement. Since I like my tests to follow the same coding standard as the rest of my source, it is easiest to ignore this error.

2.0.0

01 Jul 01:36
2.0.0
b9795c9
Compare
Choose a tag to compare

Added

  • Check format of union type hints on PHP 8, using SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.

Changed

  • Upgrade to slevomat/coding-standard version 7.

    This may require downstream changes, since some Slevomat sniffs have BC breaks. This is why ramsey/coding-standard is bumping to version 2.0.0 for this change.

    See the Slevomat changelog for 7.0.0 for details.

1.3.0

14 Nov 23:20
1.3.0
ac4b971
Compare
Choose a tag to compare

Added

  • Enforce the use of strict comparisons.
  • Check for and disallow duplicate spaces everywhere.

1.2.0

14 Nov 23:17
1.2.0
f1834d9
Compare
Choose a tag to compare

Added

  • Revised rules for absolute class name references

1.1.2

29 Aug 00:52
1.1.2
04a2112
Compare
Choose a tag to compare

Fixed

  • Use correct command prefixes

1.1.1

28 Aug 15:51
1.1.1
277e34a
Compare
Choose a tag to compare

Fixed

  • Explicitly require PHPCSUtils to avoid setting minimum-stability