Update squizlabs/php_codesniffer from 3.5.5 to 3.6.2 #164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you have a high test coverage index, and your tests for this pull request are passing, it should be both safe and recommended to merge this update.
Updated packages
Some times an update also needs new or updated dependencies to be installed. Even if this branch is for updating one dependency, it might contain other installs or updates. All of the updates in this branch can be found here.
List of updated packages
Changelog
Here is a list of changes between the version you use, and the version this pull request updates to:
Prepare for 3.6.2 releaseChangelog for #3456 (ref #3457)Merge branch 'feature/psr12-classinstantiation-bug-fix-attributes-vs-anon-class' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/ghactions-php-8.1-has-been-released' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3460 (ref #3464)Merge branch 'feature/3460-generic-multiplestatement-closure-param-bug' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3495Removed commented out code (ref #3495)Merge branch 'CyclomaticComplexity-Updates-and-Fixes' of https://github.com/MarkBaker/PHP_CodeSnifferFactor match expression into the CyclomaticComplexity calculationFactor ternary operator, null coalescence (and assignment) operators into CyclomaticComplexity calculationResolve double-increment of the CyclomaticComplexity count for do/while loopChangelog for #3440PHP 8.0 | Squiz.WhiteSpace.MemberVarSpacing: fix support for attributesGH Actions: PHP 8.1 has been releasedFixed bug #3437 : PSR12 does not forbid blank lines at the start of the class bodyChangelog for #3370Merge branch 'patch-1' of https://github.com/thiemowmde/PHP_CodeSnifferChangelog for #3388 (ref #3428)Merge branch 'feature/3388-tweaks-for-wsl-support' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3422 (ref #3447)Merge branch 'feature/3422-squiz-scopeclosingbrace-bug-fix' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch '3448-deprecation-8.1' of https://github.com/andypost/PHP_CodeSnifferChangelog for #3448 (ref #3449)Fix deprecation for PHP 8.1Generic/MultipleStatementAlignment: bug fix for closure params with defaultsPSR12/ClassInstantiation: bug fix for attributes with anonymous classesPrepare for 3.6.1 releaseChangelog for #3455 (ref #3446)Squiz/ScopeClosingBrace: bug fix - prevent removing inline HTML when fixingTokenizer/PHP: fix ? tokenization after attributeMerge branch 'feature/ghactions-various-tweaks' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3424 (ref #3427)Corrected parse errors in tests (ref #3427)Merge branch 'feature/3424-pear-functiondeclaration-handle-attributes' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3425WSL support: replace remaining calls tois_readable()``PEAR/FunctionDeclaration: minor efficiency tweakPEAR/FunctionDeclaration: ignore multi-line promoted propertiesPHP 8.1 | Runner::processChildProcs(): fix passing null to non-nullable bugGH Actions: minor tweaks to the conditionsGH Actions: stablelize theerror_reporting``GH Actions: minor matrix simplificationRemove unused variableMerge branch 'feature/tokenizer-php-fix-performance-leak' of https://github.com/jrfnl/PHP_CodeSnifferFixed bug #3394 : Fix PHP 8.1 auto_detect_line_endings deprecation noticeChangelog for #3400Changelog for #3411Fixed spelling in changelog becasue I can't stand seeing itMerge branch 'feature/php-8.1-undo-new-reference-token' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php81/prevent-returntype-will-change-notices' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.1: fix retokenization of "&" characterChangelog for #3333 (ref #3348)Merge branch 'feature/3333-squiz-objectinstantiation-bugfix-allow-for-null-coalesce' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.1: prevent deprecation notices about missing return typesChangelog for attribute false positives (ref #3396, #3397, #3398, #3399)Fix false positives when attributes are used for member varsMerge branch 'php-8.0/squiz-variablecomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-blockcomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-inlinecomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/pear-functioncomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSnifferFix autoload issuePEAR/VariableComment: prevent false positives with attributesPEAR/FunctionComment: prevent false positives with attributesSquiz/InlineComment: prevent false positives with attributesSquiz/BlockComment: prevent false positives with attributesChangelog for #3320 (ref #3298)Renamed index from attributes to has_attributesMerge branch 'WIP/php-8.0/3298-getmethodparameters-allow-for-attributes' of https://github.com/jrfnl/PHP_CodeSnifferFixed some return value issuesFixed bug #3384 : Squiz.Commenting.FileComment.SpacingAfterComment false positive on empty fileMerge branch 'feature/improve-debug-output' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3326 (ref #3351)Merge branch 'feature/3326-generic-multiplestatementalignment-bugfix' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for 3381Merge branch 'feature/ghactions-turn-on-error-reporting' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.1: Generic/ConstructorName: fix deprecation noticesGH Actions: set error reporting to E_ALLFixed bug #3362 : Generic.WhiteSpace.ScopeIndent false positive for arrow functions inside arraysMerge branch 'patch-1' of https://github.com/exussum12/PHP_CodeSnifferAdd pointless bracketsFix minor mistake related to $lengthFix indentionReplace hot Tokenizer loop with a mathematical expressionSniff test: adjust two test files to matchTokenizer/PHP: bug fix - fix performance issueTokenizer/PHP: fix tokenization of thedefaultkeywordTests: add extra tests for the default keyword tokenizationGeneric/MultipleStatementAlignment: add extra testsChangelog for #3345 (ref #3347)Merge branch 'feature/3345-generic-inlinecontrolstructures-bugfix-multicatch-finally' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3342 (ref #3343)Merge branch 'php-8.0/3342-pear-functiondeclaration-constructor-prop-prom-indent' of https://github.com/jrfnl/PHP_CodeSnifferChangelogs for #3297 and #3352 (ref #3354)Merge branch 'feature/psr2-switch-declaration-various-fixes' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3357 (ref #3358)Merge branch 'feature/3357-generic-openingfunctionbracebsdallman-fixer-removes-return-type' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/3071-follow-up-refactor-errorsuppression-tests' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/tokenizer-php-stabilize-finally' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/namedfunctioncallargtest-minor-fix' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for 3315Merge branch 'feature/squiz-blockcomment-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3340Merge branch 'feature/tokenizer-php-bug-fix' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/doublearrowtest-bugfix' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for various short open tag changesMerge branch 'feature/psr2-endfilenewline-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-disallowtabindent-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-disallowspaceindent-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-gitmergeconflict-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-syntax-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-closingphptag-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-endfilenonewline-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-endfilenewline-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-lineendings-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-lowercasefilename-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/generic-executablefile-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSnifferGeneric/OpeningFunctionBraceBsdAllman: bug fix - prevent removing return typesUpdate licence.txtNormalise License filePSR2/SwitchDeclaration: bug fix - handle try/catch/finally correctlyPSR2/SwitchDeclaration: minor efficiency tweakPSR2/SwitchDeclaration: bug fix - improve handling of commentsPSR2/SwitchDeclaration: bug fix - don't remove trailing commentsDoubleArrowTest: minor bug fixFixer/Cbf: add missing new line in level 2 debug outputTokenizer/PHP: stabilize T_FINALLY backfillSquiz/ObjectInstantiation: bug fix - account for null coalesceGeneric/InlineControlStructure: bug fix for try/catch/finallyPHP 8.0 | PEAR/FunctionDeclaration: fix handling of constructor property promotionTokenizer/PHP: bug fixNamedFunctionCallArgumentsTest: minor fixesErrorSuppressionTest::testCommenting(): refactor to data providerErrorSuppressionTest::testIgnoreSelected(): refactor to data providerErrorSuppressionTest::testEnableSelected(): refactor to data providerErrorSuppressionTest::testDisableSelected(): add some more testsErrorSuppressionTest::testDisableSelected(): refactor to data providerErrorSuppressionTest::testSuppressFile(): refactor to data providerErrorSuppressionTest::testSuppressFile(): fix bugs in testErrorSuppressionTest::testSuppressScope(): refactor to data providerErrorSuppressionTest: fix bug in testSuppressScope()ErrorSuppressionTest::testNestedSuppressLine(): refactor to data providerErrorSuppressionTest: add test for midline ignoreErrorSuppressionTest::testSuppressLine(): refactor to data providerErrorSuppressionTest: move one test case out oftestSuppressLine()``ErrorSuppressionTest::testSuppressWarning(): refactor to data providerErrorSuppressionTest::testSuppressSomeErrors(): refactor to data providerErrorSuppressionTest::testSuppressError(): refactor to data providerChangelog for #3071Tokenizer: support hash comment for ignore annotationsFixed bug #3324 : PHPCS hangs processing some nested arrow functions inside a function callChangelog for #3317Merge branch 'skip-on-ignore' of https://github.com/emil-nasso/PHP_CodeSnifferFile::getMethodParameters(): bug fix for attributes leaking into type hintFile::getMethodParameters(): add test documenting behaviour for commentsChangelog for #3302Merge branch 'feature/tokenizer-php-bugfix-namespaced-type-decl-vs-union-types' of https://github.com/jrfnl/PHP_CodeSnifferFixed bug #3316 : Arrow function not tokenized correctly when using null in union typeContinue to the next file when an ignored file is found when running checks in parallel.Squiz/BlockComment: also check for short open echo tagPSR2/EndFileNewline: check files using only short open echo tagGeneric/DisallowTabIndent: check files using only short open echo tagGeneric/DisallowSpaceIndent: check files using only short open echo tagGeneric/GitMergeConflict: check files using only short open echo tagGeneric/Syntax: check files using only short open echo tagGeneric/ClosingPHPTag: also check for short open echo tagGeneric/EndFileNoNewline: check files using only short open echo tagGeneric/EndFileNewline: check files using only short open echo tagGeneric/LineEndings: check files using only short open echo tagGeneric/LowercasedFilename: check files using short open echo tagGeneric/ExecutableFile: check files using short open echo tagFixed bug #3303 : findStartOfStatement() doesn't work with T_OPEN_TAG_WITH_ECHOPHP 8.0 | Tokenizer/PHP: bugfix for union types using namespace operatorFixed bug #3296 : PSR2.ControlStructures.SwitchDeclaration takes phpcs:ignore as content of case bodyChangelog for #3294 (ref #3299)fix bug in attributes tokenization on PHP < 8.0 (#3294)Prepare for 3.6.0 releaseChangelog for #2925Merge branch 'specialMethod' of https://github.com/VincentLanglet/PHP_CodeSnifferChangelog for #3293Merge branch 'disallow-multiple-assignments' of https://github.com/kukulich/PHP_CodeSnifferImprove check for special method and add optionSquiz.PHP.DisallowMultipleAssignmentsSniff: Fixed false positive when assigment is after goto labelSquiz.PHP.DisallowMultipleAssignmentsSniff: Fixed false positive when assigment is on first line in closureSpelling - seperator should be separatorSquiz.PHP.DisallowMultipleAssignmentsSniff: Ignore default value assignments in arrow functionsFixed bug #3195 : Generic.WhiteSpace.ScopeIndent confusing message when combination of tabs and spaces foundFixed bug #3287 : Wrongly assumed indentation with match and arraysAdded some extra debug outputChangelog for #3289Merge branch 'php8-mixed-squiz-function-comment' of https://github.com/javer/PHP_CodeSnifferChangelog for #3288PHP 8.0 | Squiz.Commenting.FunctionComment: add support for mixed paramPHP 8.0 | Squiz.WhiteSpace.FunctionSpacing: add support for attributesListed updated attribute sniffs in changelogAdded attribute supportAdded attribute supportAdded attribute supportAdded attibute supportIgnore attributes when figuring out if the docblock is file level or code level (ref #3286)Fixed bug #3284 : Unused parameter false positive when using array index in arrow functionUpdated sniff to ignore attributes (ref #3283)Changelog for #3203Merge branch 'feature/tokenizer_attributes' of https://github.com/alekitto/PHP_CodeSnifferMerge branch 'php-8.0/tokenizer-php-match-efficiency-tweaks' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.0 | Tokenizer/PHP: improve retokenization of T_DEFAULTTokenizer/PHP: add more tests for default keyword and double arrowPHP 8.0 | Tokenizer/PHP: efficiency tweaksFixed bug #3277 : Nullable static return typehint causes whitespace erroradd nested_attributes property on tokens inside an attributehandled nested attributes tokenizationadd test for fqcn attribute tokenizationadd test to ensure T_FN backfill is applied correctlyadd attribute_opener and attribute_closer properties to all tokens inside an attributeconvert an array_splice to array_merge for claritytokenizer: add support for php8 attributesChangelog for #3275PHP 8.0 | Generic.CodeAnalysis.EmptyPHPStatement: add support for matchMerge branch 'php-8.0/pear-validdefaultvalue-add-support-constr-prop-prom' of https://github.com/jrfnl/PHP_CodeSnifferAdded missing PEAR file refsAdded match expression support for findStart/EndOfStatementPHP 8.0 | PEAR/ValidDefaultValue: add tests with constructor property promotionFixed bug #3273 : Squiz.Functions.FunctionDeclarationArgumentSpacing reports line break as 0 spaces between parenthesisMerge branch 'php-8.0/generic-unused-parameter-add-support-constr-prop-prom' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-lowercasetype-add-tests-constr-prop-prom' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.0 | Generic/LowerCaseType: add tests with Constructor Property PromotionPHP 8.0 | Generic/UnusedFunctionParameter: add support for constructor property promotionPHP 8.0 | Tokenizer/PHP: bugfix for union type operator tokenizationAdded list of sniffs that now suport match expressions to changelog (ref #3037)Merge branch 'php-8.0/psr2-psr12-controlstructurespacing-support-match' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3259Merge branch 'php-8.0/squiz-scopekeywordspacing-support-cconstructor-prop-prom' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3258Merge branch 'feature/squiz-operatorbracket-bugfix-and-named-param-tests' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/pear-objectoperatorindent-test-named-params' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-nosilencederrors-support-named-params' of https://github.com/jrfnl/PHP_CodeSnifferResolved conflict between Generic.WhiteSpace.ScopeIndent and PSR2.Methods.FunctionCallSignature in a match block (ref #3255)PHP 8.0 | PEAR/ObjectOperatorIndent: add tests with named function call parametersPHP 8.0 | Generic/NoSilencedErrors: add tests with named function call parametersPHP 8.0 | Squiz/ScopeKeywordSpacing: add support for constructor property promotionPHP 7.4 | Squiz/ScopeKeywordSpacing: add tests with typed propertiesSquiz/OperatorBracket: bug fix - improve recognition of unary minusPHP 8.0 | Squiz/OperatorBracket: add tests with named function call parametersPHP 8.1: fix deprecation notice [2]Merge branch 'php-8.0/3253-psr2-functioncallsignature-support-named-params' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/ghactions-tweaks' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.1/fix-deprecation-notice' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-scopeindent-support-match' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.0 | PSR2/FunctionCallSignature: support named parametersPHP 8.0 | Pear/FunctionCallSignature: support named parametersGH Actions: allow for manually triggering a workflowGH Actions: report CS violations in the PRGH Actions: improve fix to run the tests on PHP 8.1PHP 8.1: fix deprecation noticeGH Actions: fix faulty conditionGH Actions: simplify the PHPStan workflowMerge branch 'php-8.0/psr12-booleanoperatorplacement-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-controlstructurespacing-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-disallowmultipleassignments-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-controlsignature-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-longconditionclosingcomment-support-match' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.0 | Generic/ScopeIndent: add tests with match control structureMerge branch 'php-8.0/generic-disallowyodaconditions-support-match' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.0 | Generic/ArrayIndent: add tests with match control structurePHP 8.0 | Generic/DisallowYodaConditions: add tests with match control structurePHP 8.0 | PSR2/PSR12/ControlStructureSpacing: check match expressionsPHP 8.0 | PSR12/BooleanOperatorPlacement: include match expressionsMerge branch 'php-8.0/squiz-scopeclosingbrace-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-objectinstantiation-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-operatorbracket-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-lowercasedeclaration-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-poststatementcomment-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/tokenizer-php-match-minor-bugfix' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/pear-scopeclosingbrace-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/pear-controlsignature-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-lowercasekeyword-support-match' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-emptystatement-support-match' of https://github.com/jrfnl/PHP_CodeSnifferPHP 8.0 | Squiz/ScopeClosingBrace: add tests with match control structurePHP 8.0 | Squiz/ControlStructureSpacing: check match expressionsPHP 8.0 | Squiz/ObjectInstantiation: prevent false positives on match/fn expressionsPHP 8.0 | Squiz/DisallowMultipleAssignments: correct errorcode for assignment in match expressionPHP 8.0 | Squiz/OperatorBracket: make exception for match expressionsPHP 8.0 | Squiz/ControlSignature: check signature of match expressionsPHP 8.0 | Squiz/LowercaseDeclaration: add match to keyword listPHP 8.0 | Squiz/PostStatementComment: include match expressionsPHP 8.0 | Squiz/LongConditionClosingComment: include match expressionsTokenizer/PHP: minor bugfix for match tokenizationPHP 8.0 | PEAR/ScopeClosingBrace: add tests with match control structurePHP 8.0 | PEAR/ControlSignature: check signature of match expressionsPHP 8.0 | Generic/LowerCaseKeyword: add match to keyword listPHP 8.0 | Generic/EmptyStatement: include match expressionsPHP 8.0 | Generic/AssignmentInCondition: include match expressionsChangelog for #3226Merge branch 'feature/php-8-match-expressions' of https://github.com/jrfnl/PHP_CodeSnifferTokenizer/PHP: retokenize the match double arrow to T_MATCH_ARROWPHP 8.0 | Tokenizer/PHP: add support for match expressions in combination with arrow functionsPHP 8.0 | Tokenizer/PHP: retokenizedefaultkeywords within match expressions asT_MATCH_DEFAULT``PHP 8.0 | Tokenizer/PHP: backfill theT_MATCHtokenizationPHP 8.0 | Tokens: add T_MATCH to $parenthesisOpeners and $scopeOpenerPHP 8.0 | Tokens: replicate theT_MATCHtokenArrow function tests: remove some stray function callsFixed bug #3219 : Generic.Formatting.MultipleStatementAlignment false positive for empty anonymous classes and closuresChangelog for #3214 and #3218Merge branch 'feature/windows-fix-running-external-progs' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/squiz-jslint-bugfix' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/token-constants-fix-values-x-3' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/tokenizer-php-prevent-unnecessary-change' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/tests-arrow-function-backfill-improve-tests' of https://github.com/jrfnl/PHP_CodeSnifferTokens: fix up some PHPCS native token valuesTokenizer/PHP: minor tweakGeneric/FunctionCallArgumentSpacing: add test with named function call argsArrow function tests: minor documentation fixArrow function tests: some simplifications in the rest of the testsArrow function tests: remove lots of code duplicationArrow function tests: add verification of the arrow retokenizationWindows: fix escaping of external commandsJSLint: bug fixUseless tests were not reported for before PHPUnit 6, so it doesn't understand the CLI argumentNo need to report useless testsRemove the PHPUnit config file during testingChangelog for #3186 (ref #2800, #3192)Minor refactoring and doc correctionMerge branch 'nestedSwitch' of https://github.com/VincentLanglet/PHP_CodeSnifferExport ignore .github dir (ref #3204)Changelog for #2990Unit test for #2990Merge branch 'patch-3' of https://github.com/thiemowmde/PHP_CodeSnifferChangelog for #3051 (ref #2770)Unit tests for #3051 (ref #2770)Merge branch 'skip-inheritdoc' of https://github.com/xjm/PHP_CodeSnifferMerge branch 'feature/generic-arbitrary-parentheses-spacing-minor-clean-up' of https://github.com/jrfnl/PHP_CodeSnifferFixed bug #3003 : Squiz.Formatting.OperatorBracket autofix incorrect when assignment used with null coalescing operatorChangelog for #3017Merge branch 'ignore-type-hints' of https://github.com/o5/PHP_CodeSnifferFixed bug #3197 : Squiz.NamingConventions.ValidVariableName does not use correct error code for all member varsChangelog for #3188 (ref #3189)Merge branch 'php-8.0/3188-squiz-scopekeywordspacing-bugfix' of https://github.com/jrfnl/PHP_CodeSnifferRemove use of deprecated autoload featureMerge branch 'feature/move-to-gh-actions' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3178Don't need to run the regex if the token is a string (ref #3178)Merge branch 'php-8/backfill-named-function-call-parameters-tokenization' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3163Files/FileList::current() - Check files array keyChangelog for #3055Renamed sniffs and tweaked error messages (ref #3055)Merge branch 'feature/psr-naming-conventions' of https://github.com/annechko/PHP_CodeSnifferChangelog for #3177Merge branch 'feature/tokenizer-goto-bugfix' of https://github.com/jrfnl/PHP_CodeSnifferFixed bug #3145 : Autoloading of sniff fails when multiple classes declared in same fileUpdated year in test filesFix testsFix findStartOfStatement inside of switch/casePHP 8.0 | Squiz/ScopeKeywordSpacing: fix false positive on static as return typeCI: switch to GitHub Actions - step 4: testsCI: switch to GitHub Actions - step 3: move the PEAR package validationCI: switch to GitHub Actions - step 2: XML and PEAR validationCI: switch to GitHub Actions - step 1: phpstanHandle nested switchChangelog for #3184Merge branch 'feature/psr2-namespacedeclaration-fix-false-positive' of https://github.com/jrfnl/PHP_CodeSnifferPSR2/NamespaceDeclaration: false positive on namespace operatorTravis: add build against PHP 8.0PHP 8.0 | Add support for named function call argumentsTokenizer/PHP: bugfix goto tokenization logicFixed bug #3170 : Squiz.WhiteSpace.OperatorSpacing false positive when using negation with string concatChangelog for #3172PHP 8.0 | Tokenizer/PHP: support PHP8 dereferencing of text strings with interpolated variablesFixed bug #2992 : Enabling caching using a ruleset produces invalid cache files when using --sniffs and --exclude CLI argsFixed bug #3167 : Generic.WhiteSpace.ScopeIndent false positive when using PHP 8.0 constructor property promotionFixed bug #3165 : Squiz.PHP.DisallowComparisonAssignment false positive when comparison inside closureFixed bug #2913 : Generic.WhiteSpace.ScopeIndent false positive when opening and closing tag on same line inside conditionalFixed bug #3157 : PSR2.ControlStructures.SwitchDeclaration.BreakIndent false positive when case keyword is not indentedAdded missing autofix test fileChangelog for #3153Merge branch 'feature/generic-lowercasetype-union-types-php8' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3152Merge branch 'feature/getmethodparameters-support-property-promotion-php8' of https://github.com/jrfnl/PHP_CodeSnifferPHP 7.4 | Generic/LowerCaseType: add support for typed propertiesPHP 8.0 | Generic/LowerCaseType: refactor [3] - allow for union typesGeneric/LowerCaseType: refactor [2] - remove duplicate codeGeneric/LowerCaseType: refactor [1] - move array to propertyGeneric/LowerCaseType: minor tweak to a unit testFile::getMethodProperties(): add newreturn_type_end_tokenindex to return valuePHP 8.0 | File::getMethodParameters(): add support for PHP 8 constructor property promotionChangelog for #2896 (ref #1941)Renamed new sniff propertyMerge branch 'allow-multiple-assignment-alignment-at-start-of-assign-token' of https://github.com/johnpbloch/PHP_CodeSnifferChangelog for #3032Merge branch 'feature/support-union-types' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/caching-file-hash-minor-efficiency-tweak' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'patch-1' of https://github.com/danger89/PHP_CodeSnifferFixed an issue that could occurr when checking files on network drives (ref #2965)The error message is now reported on the correct token (ref #3028)Merge branch 'patch-1' of https://github.com/vladyslavstartsev/PHP_CodeSnifferChangelog for #2077 (ref #2815)Removed unused variable (ref #2815)Merge branch 'functionComment' of https://github.com/VincentLanglet/PHP_CodeSnifferChangelog + version bump for #3107 (ref #3108)File::addMessage(): don't apply include/exclude patterns to STDINFile::process(): don't apply include/exclude patterns to STDINPSR-2 is officially deprecated, use PSR-12Prepare for 3.5.8 releaseRevert "File::addMessage(): don't apply include/exclude patterns to STDIN"Revert "File::process(): don't apply include/exclude patterns to STDIN"Prepare for 3.5.7 releaseMerge branch 'feature/3107-dont-check-stdin-against-ignore-include-paths' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3043 (ref #3129)Merge branch 'feature/3043/psr12-operatorspacing-bug-with-arrow-functions' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'docblocks1' of https://github.com/mayflower/PHP_CodeSnifferMerge branch 'feature/minor-docs-fixes' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3135PHP 8.0 compatibility: bug fix - ignore annotations are brokenChangelog for #3130Tests for autoloader class name detectionBroke out the class name detection to make it easier to testFix docblocks for File::findPrevious and File::findNextFix PHP 7.4 regression, changed behavior of get_declared_classes()Squiz/PSR12/OperatorSpacing: bug fix - unary plus/minus in arrow function returnChangelog for #3102PSR12/Squiz/OperatorSpacing: bug fix with arrow functionsChangelog for #2981Improve error message when using allowOnlyChangelog for #3049 (ref #3103)File::isReference(): bug fix - arrow function params passed by referenceFixed bug #3075 : PSR12.ControlStructures.BooleanOperatorPlacement false positive when operator is the only content on lineFixed XML formattingFurther fix for #3060 (ref #3061, #3112)Merge branch 'feature/tests-stabilize-pear-var' of https://github.com/jrfnl/PHP_CodeSnifferFixed bug #3053 : PSR2 incorrect fix when multiple use statements on same line do not have whitespace between themFixed bug #3124 : PSR-12 not reporting error for empty lines with only whitespaceFixed unintentional syntax error in test fileChangelog for #2989Merge branch 'patch-2' of https://github.com/thiemowmde/PHP_CodeSnifferChangelog for #2988Merge branch 'patch-1' of https://github.com/thiemowmde/PHP_CodeSnifferMerge branch 'feature/travis-move-once-offs-to-separate-build' of https://github.com/jrfnl/PHP_CodeSnifferMoved tests around to group them (ref #3101)Merge branch 'issues/3100' of https://github.com/morozov/php-code-snifferChangelog for #3065 (ref #3074)Merge branch 'issues/3065' of https://github.com/morozov/php-code-snifferChangelogs for fixes resulting from #3061Added missing unit tests for #3061Merge branch 'issues/3060' of https://github.com/morozov/php-code-snifferMerge branch 'feature/update-php-tokenizer-scope-closers' of https://github.com/jrfnl/PHP_CodeSnifferTests: update the Tokenizer/UndoNamespacedNameSingleToken testTokenizer/PHP: add new token to the $knownLengths propertyDocs: update "nullable_type" comments to clarify meaningPHP 8.0 | File::getMemberProperties(): add support for "union" typesPHP 8.0 | File::getMethodProperties(): add support for "union" return typesPHP 8.0 | File::getMethodParameters(): add support for "union" parameter typesPHP 8.0 | Tokenizer/PHP: arrow function backfill vs PHP8 union typesPHP 8.0 | Tokenizer/PHP: array return type keyword to T_STRING vs PHP8 union typesPHP 8.0 | Tokenizer/PHP: tokenize the "|" for union types as T_TYPE_UNIONPHP 8.0 | Tokens: add newT_TYPE_UNIONtokenChangelog for #3066Changelog for #3063 (ref #3041)Merge branch 'feature/bugfixes-namespace-operator-in-typedeclarations' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/3041-backport-old-identifier-tokenization-php-8' of https://github.com/jrfnl/PHP_CodeSnifferFixed Squiz.PHP.DisallowComparisonAssignment false positive for methods called on an object (ref #3089)Changelogs for recent false positives when exiting with negative number (ref #3099)Squiz.Formatting.OperatorBracket reporting false positive for exit statements (ref #3099)Merge branch 'issues/3098' of https://github.com/morozov/php-code-snifferChangelog for #2900Merge branch 'feature/test-frame-bugfix-warnings-not-counted' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/pear-objectoperatorindent-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-scopeindent-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferFile::addMessage(): don't apply include/exclude patterns to STDINFile::process(): don't apply include/exclude patterns to STDINMerge branch 'feature/file-isreference-simplify-logic' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3058Fixed progress output when the run completes at a wrap boundary (ref #3058)File::isReference(): simplify codeIgnore the previous element's T_COMMA when looking up the beginning of the previous expressionAdd E_EXIT to the list of non-operand tokens of the OperatorSpacing sniffTokenizer/PHP: add missing scope closersPHP 8.0: "undo" namespaced names as single tokenPHP 8.0 | PEAR/ObjectOperatorIndent: sniff for nullsafe object operatorPHP 8.0 | Generic/ScopeIndent: allow for nullsafe object operatorAdded changelog entry for sniff changesMerge branch 'php-8.0/generic-uppercaseconstantname-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-forbiddenfunctions-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/generic-sapiusage-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/psr1-sideeffects-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/psr12-classinstantiation-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-operatorbracket-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-validvariablename-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-incrementdecrementusage-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-lowercasephpfunctions-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-disallowsizefunctionsinloops-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/squiz-objectoperatorspacing-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'php-8.0/zend-validvariablename-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/travis-combat-fingerprint-mismatch-failures' of https://github.com/jrfnl/PHP_CodeSnifferTokenizer::recurseScopeMap(): fix scope setting for namespace operatorsFile::get[Method|Member][Properties|Parameters](): add support for namespace relative type declarationsTokenizer: fix handling of namespace operator in types for arrow functionsTokenizer: fix nullable type tokenization with namespace operatorTravis: retry composer install on failurePHP 8.0 | Zend/ValidVariableName: allow for nullsafe object operatorPHP 8.0 | Squiz/ObjectOperatorSpacing: sniff for nullsafe object operatorPHP 8.0 | Squiz/LowercasePHPFunctions: allow for nullsafe object operatorPHP 8.0 | Squiz/DisallowSizeFunctionsInLoops: allow for nullsafe object operatorPHP 8.0 | Squiz/IncrementDecrementUsage: allow for nullsafe object operatorPHP 8.0 | Squiz/ValidVariableName: allow for nullsafe object operatorPHP 8.0 | Squiz/OperatorBracket: allow for nullsafe object operatorPHP 8.0 | PSR12/ClassInstantiation: allow for nullsafe object operatorPHP 8.0 | PSR1/SideEffects: allow for nullsafe object operatorPHP 8.0 | Generic/SAPIUsage: allow for nullsafe object operatorPHP 8.0 | Generic/ForbiddenFunctions: allow for nullsafe object operatorPHP 8.0 | Generic/UpperCaseConstantName: allow for nullsafe object operatorChangelog for #3007Merge branch 'directory-exclude-pattern' of https://github.com/Solviq-forks/PHP_CodeSnifferChangelog for #3046 (ref #3040)Merge branch 'feature/php-8-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSnifferTravis: further tweaks for cleaner outputMerge branch 'feature/travis-phpstan-build' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3072 (ref #3069)Merge branch 'feature/3069-php-8.0-fix-hash-comment-tokenization' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #3070Merge branch 'php-8.0/psr12-nullabletype-allow-for-static-returntype' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/tokenizer-php-add-some-missing-fixed-lengths' of https://github.com/jrfnl/PHP_CodeSnifferDo not attempt to fix ArrayDeclaration.SpaceBeforeComma if there is a comment betweenPSR12/NullableTypeDeclaration: allow for static return typePHP 8.0 | Stabilize comment tokenization for hash commentsTravis: simpify PHPStan buildVarious minor documentation fixesIgnore tokens that belong to array element declarationRevert "Added ability to set affix type, value, case sensitive while checking Interface name, changed docs"Added ability to set affix type, value, case sensitive while checking Interface name, changed docsDeleted extra whitespaceCheck class, trait, interface naming in lowercase, change error codes to Missing, add Found infoAdded AbstractPrefixRequiredForAbstractClass, InterfaceSuffixRequiredForInterface, TraitSuffixRequiredForTrait sniffs to Generic.NamingConventionsMoved around tests due to PHP < 7.3 syntax error in testsChangelog for #2883Fixed bug #2883 : Generic.WhiteSpace.ScopeIndent.Incorrect issue after NOWDOCChangelog for #2882Fixed bug #2882 : Generic.Arrays.ArrayIndent can request close brace indent to be less than the statement indent levelChangelog for #2975 + version bumpFixed bug #2975 : Undefined offset in PSR12.Functions.ReturnTypeDeclaration when checking function return type inside ternaryThe helper returns a Boolean, not void.Factor out a helper for a stricter check that the comment is ONLY {@inheritdoc} (and nothing else).Ironically, fix coding standards.Add a property for skipping processing on {@inheritdoc}.Prepare for 3.5.6 releaseChangelog for #3031Merge branch 'update-magic-methods' of https://github.com/filips123/PHP_CodeSnifferChangelog for #3033Merge branch 'feature/php-8-fix-array-access-on-type-null' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #2967PHP 8.0 | Tokenizer/PHP: add support for nullsafe object operatorTokenizer/PHP: add some missing tokens to the $knownLengths propertyPHP 8.0 | Tokenizer/PHP: bug fixFix misaligned spaceGenerator/Markdown: Workaround for better renderingChangelog for #3027Merge branch 'feature/3002-fix-comment-tokenization-php-8' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/backfillfntoken-fix-tests' of https://github.com/jrfnl/PHP_CodeSnifferFixed bug #2994 : Generic.Formatting.DisallowMultipleStatements false positive for FOR loop with no bodyAdd serialize and unserialize to list of known magic methodsAdded bug report templatePHP 8.0 | Tokenizer/PHP: stabilize comment tokenizationBackfillFnTokenTest: fix bug in the testsBackfillFnTokenTest: minor test order tweakMerge branch 'feature/update-travis-env' of https://github.com/jrfnl/PHP_CodeSnifferChangelogs for #3013 and #3019Merge branch 'feature/php8-tokenizer-magic-constant-dereferencing' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'feature/php8-add-tests-for-type-mixed' of https://github.com/jrfnl/PHP_CodeSnifferTravis: change from "trusty" to "xenial"Tokenizer/PHP: add support forstaticreturn type to arrow function tokenizationFile::getMemberProperties(): add tests with PHP 8 "mixed" property typeFile::getMethodProperties(): add tests with PHP 8 "mixed" return typeFile::getMethodParameters(): add tests with PHP 8 "mixed" typeGeneric.CodeAnalysis.UnusedFunctionParameter has now option $ignoreTypeHintsThese functions are no longer deprecated in v8 - they have been removedPHPCS 3.x: test against nightlyTokenizer/PHP: support PHP8 magic constant dereferencingRemove spaces around concat operator #3007Fixed bug #3007: Directory exclude pattern improperly excludes directories with names that start the sameTests: stabilize an expected globalAdd T_OPEN_PARENTHESIS check backResult caching: minor optimization tweak [2]Result caching: minor optimization tweak [1]Fixed bug #2888 : PSR12.Files.FileHeader blank line error with multiple namespaces in one fileChangelog for #2977Merge branch 'feature/isreference-bugfix-closure-return-by-reference' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #2982Merge branch 'feature/caching-invalidate-on-different-loaded-extensions' of https://github.com/jrfnl/PHP_CodeSnifferChangelog for #2952Changelog for #2877 (ref #2941)Merge branch 'feature/file-getmethod-properties-allow-static-return-type' of https://github.com/jrfnl/PHP_CodeSnifferMerge branch 'fix' of https://github.com/VincentLanglet/PHP_CodeSnifferChangelog for #2725Merge branch 'hotfix/static-this-usage-array-closure' of https://github.com/michalbundyra/PHP_CodeSnifferremove (from publishing) files that are not needed for end userAdd T_OPEN_CURLY_BRACKET check backFix possible index error in NonExecutableCodeSniffDon't report anything if the code is incompleteFix InlineControlStructureSniff adding brackets when there is already a bracketFix rare undefined offset errors in ConcatenationSpacingSniffInvalidate the cache when a different set of PHP extensions are loadedFile::isReference(): bug fix - closure return by reference not recognizedMerge branch 'feature/simplify-findendofstatement-tests' of https://github.com/jrfnl/PHP_CodeSnifferFile::getMethodProperties(): allow for return type "static"Fixed bug #2926 : phpcs hangs when using arrow functions that return heredocAdded test files (ref #2943)Fixed bug #2943 : Redundant semicolon added to a file when fixing PSR2.Files.ClosingTag.NotAllowedHandle square bracketGeneric/ArbitraryParenthesesSpacing: minor clean upFindEndOfStatementTest: simplify the testsAbstractSniffUnitTest: bug fix - warnings not counted in totalAdd support for aligning multi-line assignments at the start of the assign tokenUse getMethodPropertiesAdd option to disable the check for protected/private functionFixes detecting usage of $this variableVariable$thismust be lowercase, PHP is case sensitive for variablesDo not ignore closuresHotfix: fn arrow closure - Squiz.Scope.StaticThisUsageThis is an automated pull request from Violinist: Continuously and automatically monitor and update your composer dependencies. Have ideas on how to improve this message? All violinist messages are open-source, and can be improved here.