Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
1.1
- Consistent behaviour for fully qualified Throwable and Errors without any additional configuration (#41)
- Support for
use constanduse functionin AlphabeticallySortedUsesSniff (#47) - constants and functions are ordered at the end matching behaviour of "Optimize Imports" in PhpStorm - Support for
use constanduse functionin UnusedUsesSniff (#43) - use statement will be marked as used only when a matching language construct mentions the used name (use constfor referenced constants,use functionfor 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
- 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
1.0.5
1.0.4
1.0.3
1.0.2
- 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
Fix FilepathNamespaceExtractor on Windows
First stable open-source release
1.0.0 1.0.0 release