Skip to content

Releases: slevomat/coding-standard

1.1

08 Aug 15:09

Choose a tag to compare

1.1
  • Consistent behaviour for fully qualified Throwable and Errors without any additional configuration (#41)
  • Support for use const and use function in AlphabeticallySortedUsesSniff (#47) - constants and functions are ordered at the end matching behaviour of "Optimize Imports" in PhpStorm
  • Support for use const and use function in UnusedUsesSniff (#43) - use statement will be marked as used only when a matching language construct mentions the used name (use const for referenced constants, use function for invoked functions and classes/interfaces/traits otherwise)
  • UnusedUsesSniff with searchAnnotations set to true (not enabled by default - see README) now searches phpDocs as fulltext (#25) - previously, used name had to be referenced in a listed and supported format. But there are a lot of formats annotations can be written in so the implementation was changed to a simple fulltext search of the used name in all phpDocs in a file.
  • Autoload sniffs in Composer so they can be used in 3rd party apps (#50)

1.0.7

29 Apr 12:36

Choose a tag to compare

  • Updated dependencies (80f01d0)
  • Fixed phpdoc (78a44c5)
  • Fixed PHPStan configuration so it works on Windows too (cc8a132)
  • Added callable to ReferencedNameHelper (1986b15)
  • UnusedPrivateElementsSniff - optimization for classes without methods (702b989)
  • UnusedPrivateElementsSniff sometimes stopped prematurely after checking properties with multiple modifiers (3a3d1e7)

1.0.6

18 Mar 09:45

Choose a tag to compare

  • Class constant is not a referenced name (5269229) (#21)

1.0.5

06 Jan 20:15

Choose a tag to compare

  • Fixed ReferencedNameHelper to return underscored names from annotations (10726ed) (#10 #11)
  • Static analysis with PHPStan (3eaa085) (#13)
  • Normalize array properties (c117fe1) (#12)

1.0.4

29 Dec 11:59

Choose a tag to compare

  • PHP7: return typehints are included in referenced names (cf23871)
  • Updated Consistence Coding Standard (6ef9a07)

1.0.3

22 Dec 11:34

Choose a tag to compare

  • UnusedPrivateElementsSniff - fixed handling always-used property annotations (172a023)

1.0.2

22 Dec 10:30

Choose a tag to compare

  • Fixed YodaComparisonSniff for negative or plus-prepended expressions (1a53b21)
  • ReferencedNameHelper - search in complex annotations (e. g. \Foo|\Bar) (46cd765)
  • UnusedPrivateElementsSniff - do not report private constructor (9dd9738)
  • UnusedPrivateElementsSniff - configurable always-used properties (f39a5e6)
  • ReferencedNameHelper - result contains traits used in a class (d93b9d4)

1.0.1

20 Dec 19:54

Choose a tag to compare

Fix FilepathNamespaceExtractor on Windows

First stable open-source release

20 Dec 14:53

Choose a tag to compare

1.0.0

1.0.0 release