Skip to content

1.1

Compare
Choose a tag to compare
@ondrejmirtes ondrejmirtes released this 08 Aug 15:09
· 2093 commits to master since this release
  • 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)