Skip to content

Releases: slevomat/coding-standard

4.4.8

28 Feb 23:35
4.4.8
8107d17
Compare
Choose a tag to compare

Fixes:

  • UnusedUsesSniff: Fixed false positives for mismatch case

4.4.7

27 Feb 22:50
4.4.7
43a8563
Compare
Choose a tag to compare

Fixes:

  • UnusedUsesSniff: Fixed false positives
  • ReferenceUsedNamesOnlySniff: Fixed fixer for code without namespace
  • AnnotationHelper: Fixed parsing of annotations with dash
  • ReferencedNameHelper: Fixed false positive

4.4.6

15 Feb 17:19
4.4.6
861e7b5
Compare
Choose a tag to compare

Fixes:

  • UnusedUsesSniff: Fixed false positives

4.4.5

09 Feb 21:21
4.4.5
2a24b1b
Compare
Choose a tag to compare

Fixes:

  • UnusedUsesSniff: Fixed false positives of case mismatch in doccomments
  • ForbiddenAnnotationsSniff: fixed empty lines when fixer removes annotations

4.4.4

08 Feb 20:05
4.4.4
01b9e8f
Compare
Choose a tag to compare

Fixes:

  • ReferenceUsedNamesOnlySniff: Importing global functions and constants is not necessary in the global namespace
  • ReferenceUsedNamesOnlySniff: Some references were ignored because of bug in allowFullyQualifiedNameForCollidingClasses option
  • EarlyExitSniff: Fixed fixing of complex conditions
  • EarlyExitSniff: Improved fixing conditions with comments
  • EarlyExitSniff: Fixed fixing of two negative conditions
  • UnusedUsesSniff: Case mismatch should be reported in doccomments too
  • UnusedUsesSniff: All occurrences of case mismatch are reported now
  • UseStatementHelper: Anonymous function in function should not be detected as use statement (thanks to @grongor)

4.4.3

07 Feb 10:57
4.4.3
ea5fe67
Compare
Choose a tag to compare

Fixes:

  • EarlyExitSniff: Fixed fixing of negative logical conditions
  • EarlyExitSniff: Fixed fixing of binary AND condition
  • ReferenceUsedNamesOnlySniff: Fixed fixing of types in annotations at the end of line (thanks to @Majkl578)

4.4.2

06 Feb 21:23
4.4.2
9c4c42a
Compare
Choose a tag to compare

Fixes:

  • EarlyExitSniff: Fixed internal exception
  • EarlyExitSniff: Fixed fixer causing parse error

4.4.1

06 Feb 16:56
4.4.1
5a0a897
Compare
Choose a tag to compare

Fixes:

  • EarlyExitSniff: Fixed false positive

4.4.0

05 Feb 21:31
4.4.0
d91220b
Compare
Choose a tag to compare

New sniffs:

  • NewWithParenthesesSniff: Require new with parentheses
  • RequireNullCoalesceOperatorSniff: Require usage of null coalesce operator when possible
  • EarlyExitSniff: Require usage of early exit
  • ForbiddenCommentsSniff: Reports forbidden comments in descriptions (thanks to @Majkl578)

Improvements:

  • ReferenceUsedNamesOnlySniff: searchAnnotations - Enables searching for mentions in @var, @param, @return and @throws annotations

Fixes:

  • UnusedPrivateElementsSniff: Properties and methods used in HEREDOC should not be reported as unused

4.3.2

28 Jan 21:13
4.3.2
872ecd4
Compare
Choose a tag to compare

Fixes:

  • TypeHintDeclarationSniff: Reports more exact error line for @param and @return annotations errors
  • LongTypeHintsSniff: Reports more exact error line
  • AnnotationHelper: Improved annotations parsing