Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
4.4.8
4.4.7
4.4.6
4.4.5
4.4.4
Fixes:
ReferenceUsedNamesOnlySniff
: Importing global functions and constants is not necessary in the global namespaceReferenceUsedNamesOnlySniff
: Some references were ignored because of bug inallowFullyQualifiedNameForCollidingClasses
optionEarlyExitSniff
: Fixed fixing of complex conditionsEarlyExitSniff
: Improved fixing conditions with commentsEarlyExitSniff
: Fixed fixing of two negative conditionsUnusedUsesSniff
: Case mismatch should be reported in doccomments tooUnusedUsesSniff
: All occurrences of case mismatch are reported nowUseStatementHelper
: Anonymous function in function should not be detected asuse
statement (thanks to @grongor)
4.4.3
4.4.2
4.4.1
4.4.0
New sniffs:
NewWithParenthesesSniff
: Requirenew
with parenthesesRequireNullCoalesceOperatorSniff
: Require usage of null coalesce operator when possibleEarlyExitSniff
: Require usage of early exitForbiddenCommentsSniff
: 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