Skip to content

Releases: consistence/coding-standard

2.0

16 Jun 13:56
Compare
Choose a tag to compare

1.1

22 May 12:11
Compare
Choose a tag to compare

1.0

05 May 11:13
Compare
Choose a tag to compare
1.0

New features

  • PHP 7.0 and 7.1 coding standard rules (#9)
  • Slevomat sniffs for checking the standard (#11)
    • This includes primarily sniffs for checking namespaces, uses, scalar type hints and other PHP 7 features.

Rule changes

  • Trait uses must be FQN (#12)
  • Remove rules for creating exception interface hierarchies (#13)
  • Remove rule for separating namespace uses by top-level namespace (#14)
  • Require bool and int in PHPDoc to be consistent with PHP's scalar types (#15)
  • Rules for writing inline @var (#16)

See respective PRs for details and reasons.

Maintenance

0.13

02 Feb 10:34
Compare
Choose a tag to compare

0.12

06 Sep 18:56
Compare
Choose a tag to compare
  • PHP_CodeSniffer 2.7
  • enable Generic.PHP.DisallowAlternativePHPTags sniff
  • enable ignoreNewlines for Squiz.WhiteSpace.ObjectOperatorSpacing to support multiline calls
  • Squiz.Functions.MultiLineFunctionDeclaration has been reworked to work with return type hints

0.11.1

27 Jul 09:00
Compare
Choose a tag to compare
  • exclude Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterBracket because it conflicts with return type hints in anonymous functions (function foo(): int {})

0.11

10 Apr 16:28
Compare
Choose a tag to compare

0.10.1

20 Jan 19:28
Compare
Choose a tag to compare
  • Fixing compatibility issue raised in PHP_CodeSniffer 2.5.1 where false positives are reported for code, which is inteded to run on PHP 5, but is checked under PHP 7 (caused by phpcs#858).
    • If you use this library in a PHP 7 only project, you may want to re-enable Squiz.Commenting.FunctionComment.TypeHintMissing in your ruleset.
  • Re-enabled more checks for multi-line calls, because comments in them are now tolerated phpcs#794.

0.10

28 Dec 14:10
Compare
Choose a tag to compare

0.9

28 Dec 14:04
Compare
Choose a tag to compare
0.9
  • PHP_CodeSniffer 2.5 with better PHP 7 support
  • better handling of multiline function calls and declarations