Skip to content

Releases: php-collective/code-sniffer

0.5.0

27 Nov 22:44

Choose a tag to compare

Improvements

  • Add support for multi-line array shape annotations by @dereuromark in #38
  • Fix VariableWrong false positives for partial doc blocks by @dereuromark in #40
  • Fix scope_opener error for abstract/interface methods by @dereuromark in #39
  • Skip docblock requirement for constructors with fully typed parameters by @dereuromark in #41
  • Fix param order when adding missing @param annotations by @dereuromark in #42
  • Remove AttributesSniff to fix conflict with Slevomat ReferenceUsedNamesOnly by @dereuromark in #43

The attribute usage is now the same as class usage. This seems to make sense moving forward and to not clash with other sniffer packages - and triggers now the major.

Full Changelog: 0.4.6...0.5.0

0.4.6

27 Oct 14:04

Choose a tag to compare

Fixes

  • Fixed use statement sniff regressions

Improvements

  • Added ConsistentIndentSniff

0.4.5

23 Oct 03:16

Choose a tag to compare

Improvements

  • Added auto fixing to FQCN attribute sniff.

0.4.4

22 Oct 13:56

Choose a tag to compare

Improvements

  • Added PhpCollective.ControlStructures.ControlSignature sniff

Full Changelog: 0.4.3...0.4.4

0.4.3

22 Oct 02:55

Choose a tag to compare

Improvements

  • Aded PhpCollective.ControlStructures.UnneededElse

Full Changelog: 0.4.2...0.4.3

0.4.2

20 Oct 20:22

Choose a tag to compare

Fixes

  • Fix up do while loops.

0.4.1

20 Oct 17:42

Choose a tag to compare

Fixes

  • Add missing sniff ControlStructureEmptyStatement

0.4.0

29 Sep 23:30
fb181c8

Choose a tag to compare

Improvements

  • Use "squizlabs/php_codesniffer": "^4.0.0" now.

0.3.1

22 Aug 13:13
dfc0ea7

Choose a tag to compare

Improvements

  • Improved PhpCollective/Sniffs/Commenting/DocBlockParamSniff to handle params better. Only require them once they are needed (missing type on a param or a random param defined already that cannot be removed).

0.3.0

19 Aug 17:46
6f66992

Choose a tag to compare

What's Changed

  • Add more useful sniffs:
    • NormalizedArrays.Arrays.ArrayBraceSpacing
    • Modernize.FunctionCalls.Dirname
    • Generic.Arrays.ArrayIndent
    • Universal.Constants.LowercaseClassResolutionKeyword
    • Universal.Constants.UppercaseMagicConstants
    • Universal.Operators.ConcatPosition
    • Universal.UseStatements.NoUselessAliases
    • Universal.WhiteSpace.PrecisionAlignment
  • ArrayDeclarationSniff has now the ability to format nested arrays, use none/assoc/all (default assoc).

This package now also includes phpcsstandards/phpcsextra dependency for even better sniff experience.

Full Changelog: 0.2.21...0.3.0