Update squizlabs/php_codesniffer from 3.5.5 to 3.6.2 #197
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 release
Changelog for #3456 (ref #3457)
Merge branch 'feature/psr12-classinstantiation-bug-fix-attributes-vs-anon-class' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/ghactions-php-8.1-has-been-released' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3460 (ref #3464)
Merge branch 'feature/3460-generic-multiplestatement-closure-param-bug' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3495
Removed commented out code (ref #3495)
Merge branch 'CyclomaticComplexity-Updates-and-Fixes' of https://github.com/MarkBaker/PHP_CodeSniffer
Factor match expression into the CyclomaticComplexity calculation
Factor ternary operator, null coalescence (and assignment) operators into CyclomaticComplexity calculation
Resolve double-increment of the CyclomaticComplexity count for do/while loop
Changelog for #3440
PHP 8.0 | Squiz.WhiteSpace.MemberVarSpacing: fix support for attributes
GH Actions: PHP 8.1 has been released
Fixed bug #3437 : PSR12 does not forbid blank lines at the start of the class body
Changelog for #3370
Merge branch 'patch-1' of https://github.com/thiemowmde/PHP_CodeSniffer
Changelog for #3388 (ref #3428)
Merge branch 'feature/3388-tweaks-for-wsl-support' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3422 (ref #3447)
Merge branch 'feature/3422-squiz-scopeclosingbrace-bug-fix' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch '3448-deprecation-8.1' of https://github.com/andypost/PHP_CodeSniffer
Changelog for #3448 (ref #3449)
Fix deprecation for PHP 8.1
Generic/MultipleStatementAlignment: bug fix for closure params with defaults
PSR12/ClassInstantiation: bug fix for attributes with anonymous classes
Prepare for 3.6.1 release
Changelog for #3455 (ref #3446)
Squiz/ScopeClosingBrace: bug fix - prevent removing inline HTML when fixing
Tokenizer/PHP: fix ? tokenization after attribute
Merge branch 'feature/ghactions-various-tweaks' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog 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_CodeSniffer
Changelog for #3425
WSL support: replace remaining calls to
is_readable()``PEAR/FunctionDeclaration: minor efficiency tweak
PEAR/FunctionDeclaration: ignore multi-line promoted properties
PHP 8.1 | Runner::processChildProcs(): fix passing null to non-nullable bug
GH Actions: minor tweaks to the conditions
GH Actions: stablelize the
error_reporting``GH Actions: minor matrix simplification
Remove unused variable
Merge branch 'feature/tokenizer-php-fix-performance-leak' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed bug #3394 : Fix PHP 8.1 auto_detect_line_endings deprecation notice
Changelog for #3400
Changelog for #3411
Fixed spelling in changelog becasue I can't stand seeing it
Merge branch 'feature/php-8.1-undo-new-reference-token' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php81/prevent-returntype-will-change-notices' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.1: fix retokenization of "&" character
Changelog for #3333 (ref #3348)
Merge branch 'feature/3333-squiz-objectinstantiation-bugfix-allow-for-null-coalesce' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.1: prevent deprecation notices about missing return types
Changelog for attribute false positives (ref #3396, #3397, #3398, #3399)
Fix false positives when attributes are used for member vars
Merge branch 'php-8.0/squiz-variablecomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-blockcomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-inlinecomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/pear-functioncomment-support-attributes' of https://github.com/jrfnl/PHP_CodeSniffer
Fix autoload issue
PEAR/VariableComment: prevent false positives with attributes
PEAR/FunctionComment: prevent false positives with attributes
Squiz/InlineComment: prevent false positives with attributes
Squiz/BlockComment: prevent false positives with attributes
Changelog for #3320 (ref #3298)
Renamed index from attributes to has_attributes
Merge branch 'WIP/php-8.0/3298-getmethodparameters-allow-for-attributes' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed some return value issues
Fixed bug #3384 : Squiz.Commenting.FileComment.SpacingAfterComment false positive on empty file
Merge branch 'feature/improve-debug-output' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3326 (ref #3351)
Merge branch 'feature/3326-generic-multiplestatementalignment-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for 3381
Merge branch 'feature/ghactions-turn-on-error-reporting' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.1: Generic/ConstructorName: fix deprecation notices
GH Actions: set error reporting to E_ALL
Fixed bug #3362 : Generic.WhiteSpace.ScopeIndent false positive for arrow functions inside arrays
Merge branch 'patch-1' of https://github.com/exussum12/PHP_CodeSniffer
Add pointless brackets
Fix minor mistake related to $length
Fix indention
Replace hot Tokenizer loop with a mathematical expression
Sniff test: adjust two test files to match
Tokenizer/PHP: bug fix - fix performance issue
Tokenizer/PHP: fix tokenization of the
defaultkeyword
Tests: add extra tests for the default keyword tokenization
Generic/MultipleStatementAlignment: add extra tests
Changelog for #3345 (ref #3347)
Merge branch 'feature/3345-generic-inlinecontrolstructures-bugfix-multicatch-finally' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3342 (ref #3343)
Merge branch 'php-8.0/3342-pear-functiondeclaration-constructor-prop-prom-indent' of https://github.com/jrfnl/PHP_CodeSniffer
Changelogs for #3297 and #3352 (ref #3354)
Merge branch 'feature/psr2-switch-declaration-various-fixes' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3357 (ref #3358)
Merge branch 'feature/3357-generic-openingfunctionbracebsdallman-fixer-removes-return-type' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/3071-follow-up-refactor-errorsuppression-tests' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/tokenizer-php-stabilize-finally' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/namedfunctioncallargtest-minor-fix' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for 3315
Merge branch 'feature/squiz-blockcomment-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3340
Merge branch 'feature/tokenizer-php-bug-fix' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/doublearrowtest-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for various short open tag changes
Merge branch 'feature/psr2-endfilenewline-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-disallowtabindent-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-disallowspaceindent-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-gitmergeconflict-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-syntax-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-closingphptag-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-endfilenonewline-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-endfilenewline-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-lineendings-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-lowercasefilename-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-executablefile-check-short-echo-tag' of https://github.com/jrfnl/PHP_CodeSniffer
Generic/OpeningFunctionBraceBsdAllman: bug fix - prevent removing return types
Update licence.txt
Normalise License file
PSR2/SwitchDeclaration: bug fix - handle try/catch/finally correctly
PSR2/SwitchDeclaration: minor efficiency tweak
PSR2/SwitchDeclaration: bug fix - improve handling of comments
PSR2/SwitchDeclaration: bug fix - don't remove trailing comments
DoubleArrowTest: minor bug fix
Fixer/Cbf: add missing new line in level 2 debug output
Tokenizer/PHP: stabilize T_FINALLY backfill
Squiz/ObjectInstantiation: bug fix - account for null coalesce
Generic/InlineControlStructure: bug fix for try/catch/finally
PHP 8.0 | PEAR/FunctionDeclaration: fix handling of constructor property promotion
Tokenizer/PHP: bug fix
NamedFunctionCallArgumentsTest: minor fixes
ErrorSuppressionTest::testCommenting(): refactor to data provider
ErrorSuppressionTest::testIgnoreSelected(): refactor to data provider
ErrorSuppressionTest::testEnableSelected(): refactor to data provider
ErrorSuppressionTest::testDisableSelected(): add some more tests
ErrorSuppressionTest::testDisableSelected(): refactor to data provider
ErrorSuppressionTest::testSuppressFile(): refactor to data provider
ErrorSuppressionTest::testSuppressFile(): fix bugs in test
ErrorSuppressionTest::testSuppressScope(): refactor to data provider
ErrorSuppressionTest: fix bug in testSuppressScope()
ErrorSuppressionTest::testNestedSuppressLine(): refactor to data provider
ErrorSuppressionTest: add test for midline ignore
ErrorSuppressionTest::testSuppressLine(): refactor to data provider
ErrorSuppressionTest: move one test case out of
testSuppressLine()``ErrorSuppressionTest::testSuppressWarning(): refactor to data provider
ErrorSuppressionTest::testSuppressSomeErrors(): refactor to data provider
ErrorSuppressionTest::testSuppressError(): refactor to data provider
Changelog for #3071
Tokenizer: support hash comment for ignore annotations
Fixed bug #3324 : PHPCS hangs processing some nested arrow functions inside a function call
Changelog for #3317
Merge branch 'skip-on-ignore' of https://github.com/emil-nasso/PHP_CodeSniffer
File::getMethodParameters(): bug fix for attributes leaking into type hint
File::getMethodParameters(): add test documenting behaviour for comments
Changelog for #3302
Merge branch 'feature/tokenizer-php-bugfix-namespaced-type-decl-vs-union-types' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed bug #3316 : Arrow function not tokenized correctly when using null in union type
Continue to the next file when an ignored file is found when running checks in parallel.
Squiz/BlockComment: also check for short open echo tag
PSR2/EndFileNewline: check files using only short open echo tag
Generic/DisallowTabIndent: check files using only short open echo tag
Generic/DisallowSpaceIndent: check files using only short open echo tag
Generic/GitMergeConflict: check files using only short open echo tag
Generic/Syntax: check files using only short open echo tag
Generic/ClosingPHPTag: also check for short open echo tag
Generic/EndFileNoNewline: check files using only short open echo tag
Generic/EndFileNewline: check files using only short open echo tag
Generic/LineEndings: check files using only short open echo tag
Generic/LowercasedFilename: check files using short open echo tag
Generic/ExecutableFile: check files using short open echo tag
Fixed bug #3303 : findStartOfStatement() doesn't work with T_OPEN_TAG_WITH_ECHO
PHP 8.0 | Tokenizer/PHP: bugfix for union types using namespace operator
Fixed bug #3296 : PSR2.ControlStructures.SwitchDeclaration takes phpcs:ignore as content of case body
Changelog for #3294 (ref #3299)
fix bug in attributes tokenization on PHP < 8.0 (#3294)
Prepare for 3.6.0 release
Changelog for #2925
Merge branch 'specialMethod' of https://github.com/VincentLanglet/PHP_CodeSniffer
Changelog for #3293
Merge branch 'disallow-multiple-assignments' of https://github.com/kukulich/PHP_CodeSniffer
Improve check for special method and add option
Squiz.PHP.DisallowMultipleAssignmentsSniff: Fixed false positive when assigment is after goto label
Squiz.PHP.DisallowMultipleAssignmentsSniff: Fixed false positive when assigment is on first line in closure
Spelling - seperator should be separator
Squiz.PHP.DisallowMultipleAssignmentsSniff: Ignore default value assignments in arrow functions
Fixed bug #3195 : Generic.WhiteSpace.ScopeIndent confusing message when combination of tabs and spaces found
Fixed bug #3287 : Wrongly assumed indentation with match and arrays
Added some extra debug output
Changelog for #3289
Merge branch 'php8-mixed-squiz-function-comment' of https://github.com/javer/PHP_CodeSniffer
Changelog for #3288
PHP 8.0 | Squiz.Commenting.FunctionComment: add support for mixed param
PHP 8.0 | Squiz.WhiteSpace.FunctionSpacing: add support for attributes
Listed updated attribute sniffs in changelog
Added attribute support
Added attribute support
Added attribute support
Added attibute support
Ignore 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 function
Updated sniff to ignore attributes (ref #3283)
Changelog for #3203
Merge branch 'feature/tokenizer_attributes' of https://github.com/alekitto/PHP_CodeSniffer
Merge branch 'php-8.0/tokenizer-php-match-efficiency-tweaks' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.0 | Tokenizer/PHP: improve retokenization of T_DEFAULT
Tokenizer/PHP: add more tests for default keyword and double arrow
PHP 8.0 | Tokenizer/PHP: efficiency tweaks
Fixed bug #3277 : Nullable static return typehint causes whitespace error
add nested_attributes property on tokens inside an attribute
handled nested attributes tokenization
add test for fqcn attribute tokenization
add test to ensure T_FN backfill is applied correctly
add attribute_opener and attribute_closer properties to all tokens inside an attribute
convert an array_splice to array_merge for clarity
tokenizer: add support for php8 attributes
Changelog for #3275
PHP 8.0 | Generic.CodeAnalysis.EmptyPHPStatement: add support for match
Merge branch 'php-8.0/pear-validdefaultvalue-add-support-constr-prop-prom' of https://github.com/jrfnl/PHP_CodeSniffer
Added missing PEAR file refs
Added match expression support for findStart/EndOfStatement
PHP 8.0 | PEAR/ValidDefaultValue: add tests with constructor property promotion
Fixed bug #3273 : Squiz.Functions.FunctionDeclarationArgumentSpacing reports line break as 0 spaces between parenthesis
Merge branch 'php-8.0/generic-unused-parameter-add-support-constr-prop-prom' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-lowercasetype-add-tests-constr-prop-prom' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.0 | Generic/LowerCaseType: add tests with Constructor Property Promotion
PHP 8.0 | Generic/UnusedFunctionParameter: add support for constructor property promotion
PHP 8.0 | Tokenizer/PHP: bugfix for union type operator tokenization
Added 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_CodeSniffer
Changelog for #3259
Merge branch 'php-8.0/squiz-scopekeywordspacing-support-cconstructor-prop-prom' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3258
Merge branch 'feature/squiz-operatorbracket-bugfix-and-named-param-tests' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/pear-objectoperatorindent-test-named-params' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-nosilencederrors-support-named-params' of https://github.com/jrfnl/PHP_CodeSniffer
Resolved 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 parameters
PHP 8.0 | Generic/NoSilencedErrors: add tests with named function call parameters
PHP 8.0 | Squiz/ScopeKeywordSpacing: add support for constructor property promotion
PHP 7.4 | Squiz/ScopeKeywordSpacing: add tests with typed properties
Squiz/OperatorBracket: bug fix - improve recognition of unary minus
PHP 8.0 | Squiz/OperatorBracket: add tests with named function call parameters
PHP 8.1: fix deprecation notice [2]
Merge branch 'php-8.0/3253-psr2-functioncallsignature-support-named-params' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/ghactions-tweaks' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.1/fix-deprecation-notice' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-scopeindent-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.0 | PSR2/FunctionCallSignature: support named parameters
PHP 8.0 | Pear/FunctionCallSignature: support named parameters
GH Actions: allow for manually triggering a workflow
GH Actions: report CS violations in the PR
GH Actions: improve fix to run the tests on PHP 8.1
PHP 8.1: fix deprecation notice
GH Actions: fix faulty condition
GH Actions: simplify the PHPStan workflow
Merge branch 'php-8.0/psr12-booleanoperatorplacement-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-controlstructurespacing-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-disallowmultipleassignments-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-controlsignature-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-longconditionclosingcomment-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.0 | Generic/ScopeIndent: add tests with match control structure
Merge branch 'php-8.0/generic-disallowyodaconditions-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.0 | Generic/ArrayIndent: add tests with match control structure
PHP 8.0 | Generic/DisallowYodaConditions: add tests with match control structure
PHP 8.0 | PSR2/PSR12/ControlStructureSpacing: check match expressions
PHP 8.0 | PSR12/BooleanOperatorPlacement: include match expressions
Merge branch 'php-8.0/squiz-scopeclosingbrace-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-objectinstantiation-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-operatorbracket-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-lowercasedeclaration-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-poststatementcomment-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/tokenizer-php-match-minor-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/pear-scopeclosingbrace-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/pear-controlsignature-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-lowercasekeyword-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-emptystatement-support-match' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.0 | Squiz/ScopeClosingBrace: add tests with match control structure
PHP 8.0 | Squiz/ControlStructureSpacing: check match expressions
PHP 8.0 | Squiz/ObjectInstantiation: prevent false positives on match/fn expressions
PHP 8.0 | Squiz/DisallowMultipleAssignments: correct errorcode for assignment in match expression
PHP 8.0 | Squiz/OperatorBracket: make exception for match expressions
PHP 8.0 | Squiz/ControlSignature: check signature of match expressions
PHP 8.0 | Squiz/LowercaseDeclaration: add match to keyword list
PHP 8.0 | Squiz/PostStatementComment: include match expressions
PHP 8.0 | Squiz/LongConditionClosingComment: include match expressions
Tokenizer/PHP: minor bugfix for match tokenization
PHP 8.0 | PEAR/ScopeClosingBrace: add tests with match control structure
PHP 8.0 | PEAR/ControlSignature: check signature of match expressions
PHP 8.0 | Generic/LowerCaseKeyword: add match to keyword list
PHP 8.0 | Generic/EmptyStatement: include match expressions
PHP 8.0 | Generic/AssignmentInCondition: include match expressions
Changelog for #3226
Merge branch 'feature/php-8-match-expressions' of https://github.com/jrfnl/PHP_CodeSniffer
Tokenizer/PHP: retokenize the match double arrow to T_MATCH_ARROW
PHP 8.0 | Tokenizer/PHP: add support for match expressions in combination with arrow functions
PHP 8.0 | Tokenizer/PHP: retokenize
defaultkeywords within match expressions as
T_MATCH_DEFAULT``PHP 8.0 | Tokenizer/PHP: backfill the
T_MATCHtokenization
PHP 8.0 | Tokens: add T_MATCH to $parenthesisOpeners and $scopeOpener
PHP 8.0 | Tokens: replicate the
T_MATCHtoken
Arrow function tests: remove some stray function calls
Fixed bug #3219 : Generic.Formatting.MultipleStatementAlignment false positive for empty anonymous classes and closures
Changelog for #3214 and #3218
Merge branch 'feature/windows-fix-running-external-progs' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/squiz-jslint-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/token-constants-fix-values-x-3' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/tokenizer-php-prevent-unnecessary-change' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/tests-arrow-function-backfill-improve-tests' of https://github.com/jrfnl/PHP_CodeSniffer
Tokens: fix up some PHPCS native token values
Tokenizer/PHP: minor tweak
Generic/FunctionCallArgumentSpacing: add test with named function call args
Arrow function tests: minor documentation fix
Arrow function tests: some simplifications in the rest of the tests
Arrow function tests: remove lots of code duplication
Arrow function tests: add verification of the arrow retokenization
Windows: fix escaping of external commands
JSLint: bug fix
Useless tests were not reported for before PHPUnit 6, so it doesn't understand the CLI argument
No need to report useless tests
Remove the PHPUnit config file during testing
Changelog for #3186 (ref #2800, #3192)
Minor refactoring and doc correction
Merge branch 'nestedSwitch' of https://github.com/VincentLanglet/PHP_CodeSniffer
Export ignore .github dir (ref #3204)
Changelog for #2990
Unit test for #2990
Merge branch 'patch-3' of https://github.com/thiemowmde/PHP_CodeSniffer
Changelog for #3051 (ref #2770)
Unit tests for #3051 (ref #2770)
Merge branch 'skip-inheritdoc' of https://github.com/xjm/PHP_CodeSniffer
Merge branch 'feature/generic-arbitrary-parentheses-spacing-minor-clean-up' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed bug #3003 : Squiz.Formatting.OperatorBracket autofix incorrect when assignment used with null coalescing operator
Changelog for #3017
Merge branch 'ignore-type-hints' of https://github.com/o5/PHP_CodeSniffer
Fixed bug #3197 : Squiz.NamingConventions.ValidVariableName does not use correct error code for all member vars
Changelog for #3188 (ref #3189)
Merge branch 'php-8.0/3188-squiz-scopekeywordspacing-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Remove use of deprecated autoload feature
Merge branch 'feature/move-to-gh-actions' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3178
Don'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_CodeSniffer
Changelog for #3163
Files/FileList::current() - Check files array key
Changelog for #3055
Renamed sniffs and tweaked error messages (ref #3055)
Merge branch 'feature/psr-naming-conventions' of https://github.com/annechko/PHP_CodeSniffer
Changelog for #3177
Merge branch 'feature/tokenizer-goto-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed bug #3145 : Autoloading of sniff fails when multiple classes declared in same file
Updated year in test files
Fix tests
Fix findStartOfStatement inside of switch/case
PHP 8.0 | Squiz/ScopeKeywordSpacing: fix false positive on static as return type
CI: switch to GitHub Actions - step 4: tests
CI: switch to GitHub Actions - step 3: move the PEAR package validation
CI: switch to GitHub Actions - step 2: XML and PEAR validation
CI: switch to GitHub Actions - step 1: phpstan
Handle nested switch
Changelog for #3184
Merge branch 'feature/psr2-namespacedeclaration-fix-false-positive' of https://github.com/jrfnl/PHP_CodeSniffer
PSR2/NamespaceDeclaration: false positive on namespace operator
Travis: add build against PHP 8.0
PHP 8.0 | Add support for named function call arguments
Tokenizer/PHP: bugfix goto tokenization logic
Fixed bug #3170 : Squiz.WhiteSpace.OperatorSpacing false positive when using negation with string concat
Changelog for #3172
PHP 8.0 | Tokenizer/PHP: support PHP8 dereferencing of text strings with interpolated variables
Fixed bug #2992 : Enabling caching using a ruleset produces invalid cache files when using --sniffs and --exclude CLI args
Fixed bug #3167 : Generic.WhiteSpace.ScopeIndent false positive when using PHP 8.0 constructor property promotion
Fixed bug #3165 : Squiz.PHP.DisallowComparisonAssignment false positive when comparison inside closure
Fixed bug #2913 : Generic.WhiteSpace.ScopeIndent false positive when opening and closing tag on same line inside conditional
Fixed bug #3157 : PSR2.ControlStructures.SwitchDeclaration.BreakIndent false positive when case keyword is not indented
Added missing autofix test file
Changelog for #3153
Merge branch 'feature/generic-lowercasetype-union-types-php8' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3152
Merge branch 'feature/getmethodparameters-support-property-promotion-php8' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 7.4 | Generic/LowerCaseType: add support for typed properties
PHP 8.0 | Generic/LowerCaseType: refactor [3] - allow for union types
Generic/LowerCaseType: refactor [2] - remove duplicate code
Generic/LowerCaseType: refactor [1] - move array to property
Generic/LowerCaseType: minor tweak to a unit test
File::getMethodProperties(): add new
return_type_end_tokenindex to return value
PHP 8.0 | File::getMethodParameters(): add support for PHP 8 constructor property promotion
Changelog for #2896 (ref #1941)
Renamed new sniff property
Merge branch 'allow-multiple-assignment-alignment-at-start-of-assign-token' of https://github.com/johnpbloch/PHP_CodeSniffer
Changelog for #3032
Merge branch 'feature/support-union-types' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/caching-file-hash-minor-efficiency-tweak' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'patch-1' of https://github.com/danger89/PHP_CodeSniffer
Fixed 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_CodeSniffer
Changelog for #2077 (ref #2815)
Removed unused variable (ref #2815)
Merge branch 'functionComment' of https://github.com/VincentLanglet/PHP_CodeSniffer
Changelog + version bump for #3107 (ref #3108)
File::addMessage(): don't apply include/exclude patterns to STDIN
File::process(): don't apply include/exclude patterns to STDIN
PSR-2 is officially deprecated, use PSR-12
Prepare for 3.5.8 release
Revert "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 release
Merge branch 'feature/3107-dont-check-stdin-against-ignore-include-paths' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3043 (ref #3129)
Merge branch 'feature/3043/psr12-operatorspacing-bug-with-arrow-functions' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'docblocks1' of https://github.com/mayflower/PHP_CodeSniffer
Merge branch 'feature/minor-docs-fixes' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3135
PHP 8.0 compatibility: bug fix - ignore annotations are broken
Changelog for #3130
Tests for autoloader class name detection
Broke out the class name detection to make it easier to test
Fix docblocks for File::findPrevious and File::findNext
Fix PHP 7.4 regression, changed behavior of get_declared_classes()
Squiz/PSR12/OperatorSpacing: bug fix - unary plus/minus in arrow function return
Changelog for #3102
PSR12/Squiz/OperatorSpacing: bug fix with arrow functions
Changelog for #2981
Improve error message when using allowOnly
Changelog for #3049 (ref #3103)
File::isReference(): bug fix - arrow function params passed by reference
Fixed bug #3075 : PSR12.ControlStructures.BooleanOperatorPlacement false positive when operator is the only content on line
Fixed XML formatting
Further fix for #3060 (ref #3061, #3112)
Merge branch 'feature/tests-stabilize-pear-var' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed bug #3053 : PSR2 incorrect fix when multiple use statements on same line do not have whitespace between them
Fixed bug #3124 : PSR-12 not reporting error for empty lines with only whitespace
Fixed unintentional syntax error in test file
Changelog for #2989
Merge branch 'patch-2' of https://github.com/thiemowmde/PHP_CodeSniffer
Changelog for #2988
Merge branch 'patch-1' of https://github.com/thiemowmde/PHP_CodeSniffer
Merge branch 'feature/travis-move-once-offs-to-separate-build' of https://github.com/jrfnl/PHP_CodeSniffer
Moved tests around to group them (ref #3101)
Merge branch 'issues/3100' of https://github.com/morozov/php-code-sniffer
Changelog for #3065 (ref #3074)
Merge branch 'issues/3065' of https://github.com/morozov/php-code-sniffer
Changelogs for fixes resulting from #3061
Added missing unit tests for #3061
Merge branch 'issues/3060' of https://github.com/morozov/php-code-sniffer
Merge branch 'feature/update-php-tokenizer-scope-closers' of https://github.com/jrfnl/PHP_CodeSniffer
Tests: update the Tokenizer/UndoNamespacedNameSingleToken test
Tokenizer/PHP: add new token to the $knownLengths property
Docs: update "nullable_type" comments to clarify meaning
PHP 8.0 | File::getMemberProperties(): add support for "union" types
PHP 8.0 | File::getMethodProperties(): add support for "union" return types
PHP 8.0 | File::getMethodParameters(): add support for "union" parameter types
PHP 8.0 | Tokenizer/PHP: arrow function backfill vs PHP8 union types
PHP 8.0 | Tokenizer/PHP: array return type keyword to T_STRING vs PHP8 union types
PHP 8.0 | Tokenizer/PHP: tokenize the "|" for union types as T_TYPE_UNION
PHP 8.0 | Tokens: add new
T_TYPE_UNIONtoken
Changelog for #3066
Changelog for #3063 (ref #3041)
Merge branch 'feature/bugfixes-namespace-operator-in-typedeclarations' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/3041-backport-old-identifier-tokenization-php-8' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed 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-sniffer
Changelog for #2900
Merge branch 'feature/test-frame-bugfix-warnings-not-counted' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/pear-objectoperatorindent-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-scopeindent-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
File::addMessage(): don't apply include/exclude patterns to STDIN
File::process(): don't apply include/exclude patterns to STDIN
Merge branch 'feature/file-isreference-simplify-logic' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3058
Fixed progress output when the run completes at a wrap boundary (ref #3058)
File::isReference(): simplify code
Ignore the previous element's T_COMMA when looking up the beginning of the previous expression
Add E_EXIT to the list of non-operand tokens of the OperatorSpacing sniff
Tokenizer/PHP: add missing scope closers
PHP 8.0: "undo" namespaced names as single token
PHP 8.0 | PEAR/ObjectOperatorIndent: sniff for nullsafe object operator
PHP 8.0 | Generic/ScopeIndent: allow for nullsafe object operator
Added changelog entry for sniff changes
Merge branch 'php-8.0/generic-uppercaseconstantname-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-forbiddenfunctions-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-sapiusage-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/psr1-sideeffects-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/psr12-classinstantiation-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-operatorbracket-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-validvariablename-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-incrementdecrementusage-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-lowercasephpfunctions-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-disallowsizefunctionsinloops-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/squiz-objectoperatorspacing-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/zend-validvariablename-support-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/travis-combat-fingerprint-mismatch-failures' of https://github.com/jrfnl/PHP_CodeSniffer
Tokenizer::recurseScopeMap(): fix scope setting for namespace operators
File::get[Method|Member][Properties|Parameters](): add support for namespace relative type declarations
Tokenizer: fix handling of namespace operator in types for arrow functions
Tokenizer: fix nullable type tokenization with namespace operator
Travis: retry composer install on failure
PHP 8.0 | Zend/ValidVariableName: allow for nullsafe object operator
PHP 8.0 | Squiz/ObjectOperatorSpacing: sniff for nullsafe object operator
PHP 8.0 | Squiz/LowercasePHPFunctions: allow for nullsafe object operator
PHP 8.0 | Squiz/DisallowSizeFunctionsInLoops: allow for nullsafe object operator
PHP 8.0 | Squiz/IncrementDecrementUsage: allow for nullsafe object operator
PHP 8.0 | Squiz/ValidVariableName: allow for nullsafe object operator
PHP 8.0 | Squiz/OperatorBracket: allow for nullsafe object operator
PHP 8.0 | PSR12/ClassInstantiation: allow for nullsafe object operator
PHP 8.0 | PSR1/SideEffects: allow for nullsafe object operator
PHP 8.0 | Generic/SAPIUsage: allow for nullsafe object operator
PHP 8.0 | Generic/ForbiddenFunctions: allow for nullsafe object operator
PHP 8.0 | Generic/UpperCaseConstantName: allow for nullsafe object operator
Changelog for #3007
Merge branch 'directory-exclude-pattern' of https://github.com/Solviq-forks/PHP_CodeSniffer
Changelog for #3046 (ref #3040)
Merge branch 'feature/php-8-nullsafe-operator' of https://github.com/jrfnl/PHP_CodeSniffer
Travis: further tweaks for cleaner output
Merge branch 'feature/travis-phpstan-build' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3072 (ref #3069)
Merge branch 'feature/3069-php-8.0-fix-hash-comment-tokenization' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3070
Merge branch 'php-8.0/psr12-nullabletype-allow-for-static-returntype' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/tokenizer-php-add-some-missing-fixed-lengths' of https://github.com/jrfnl/PHP_CodeSniffer
Do not attempt to fix ArrayDeclaration.SpaceBeforeComma if there is a comment between
PSR12/NullableTypeDeclaration: allow for static return type
PHP 8.0 | Stabilize comment tokenization for hash comments
Travis: simpify PHPStan build
Various minor documentation fixes
Ignore tokens that belong to array element declaration
Revert "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 docs
Deleted extra whitespace
Check class, trait, interface naming in lowercase, change error codes to Missing, add Found info
Added AbstractPrefixRequiredForAbstractClass, InterfaceSuffixRequiredForInterface, TraitSuffixRequiredForTrait sniffs to Generic.NamingConventions
Moved around tests due to PHP < 7.3 syntax error in tests
Changelog for #2883
Fixed bug #2883 : Generic.WhiteSpace.ScopeIndent.Incorrect issue after NOWDOC
Changelog for #2882
Fixed bug #2882 : Generic.Arrays.ArrayIndent can request close brace indent to be less than the statement indent level
Changelog for #2975 + version bump
Fixed bug #2975 : Undefined offset in PSR12.Functions.ReturnTypeDeclaration when checking function return type inside ternary
The 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 release
Changelog for #3031
Merge branch 'update-magic-methods' of https://github.com/filips123/PHP_CodeSniffer
Changelog for #3033
Merge branch 'feature/php-8-fix-array-access-on-type-null' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #2967
PHP 8.0 | Tokenizer/PHP: add support for nullsafe object operator
Tokenizer/PHP: add some missing tokens to the $knownLengths property
PHP 8.0 | Tokenizer/PHP: bug fix
Fix misaligned space
Generator/Markdown: Workaround for better rendering
Changelog for #3027
Merge branch 'feature/3002-fix-comment-tokenization-php-8' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/backfillfntoken-fix-tests' of https://github.com/jrfnl/PHP_CodeSniffer
Fixed bug #2994 : Generic.Formatting.DisallowMultipleStatements false positive for FOR loop with no body
Add serialize and unserialize to list of known magic methods
Added bug report template
PHP 8.0 | Tokenizer/PHP: stabilize comment tokenization
BackfillFnTokenTest: fix bug in the tests
BackfillFnTokenTest: minor test order tweak
Merge branch 'feature/update-travis-env' of https://github.com/jrfnl/PHP_CodeSniffer
Changelogs for #3013 and #3019
Merge branch 'feature/php8-tokenizer-magic-constant-dereferencing' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/php8-add-tests-for-type-mixed' of https://github.com/jrfnl/PHP_CodeSniffer
Travis: change from "trusty" to "xenial"
Tokenizer/PHP: add support for
staticreturn type to arrow function tokenization
File::getMemberProperties(): add tests with PHP 8 "mixed" property type
File::getMethodProperties(): add tests with PHP 8 "mixed" return type
File::getMethodParameters(): add tests with PHP 8 "mixed" type
Generic.CodeAnalysis.UnusedFunctionParameter has now option $ignoreTypeHints
These functions are no longer deprecated in v8 - they have been removed
PHPCS 3.x: test against nightly
Tokenizer/PHP: support PHP8 magic constant dereferencing
Remove spaces around concat operator #3007
Fixed bug #3007: Directory exclude pattern improperly excludes directories with names that start the same
Tests: stabilize an expected global
Add T_OPEN_PARENTHESIS check back
Result 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 file
Changelog for #2977
Merge branch 'feature/isreference-bugfix-closure-return-by-reference' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #2982
Merge branch 'feature/caching-invalidate-on-different-loaded-extensions' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #2952
Changelog for #2877 (ref #2941)
Merge branch 'feature/file-getmethod-properties-allow-static-return-type' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'fix' of https://github.com/VincentLanglet/PHP_CodeSniffer
Changelog for #2725
Merge branch 'hotfix/static-this-usage-array-closure' of https://github.com/michalbundyra/PHP_CodeSniffer
remove (from publishing) files that are not needed for end user
Add T_OPEN_CURLY_BRACKET check back
Fix possible index error in NonExecutableCodeSniff
Don't report anything if the code is incomplete
Fix InlineControlStructureSniff adding brackets when there is already a bracket
Fix rare undefined offset errors in ConcatenationSpacingSniff
Invalidate the cache when a different set of PHP extensions are loaded
File::isReference(): bug fix - closure return by reference not recognized
Merge branch 'feature/simplify-findendofstatement-tests' of https://github.com/jrfnl/PHP_CodeSniffer
File::getMethodProperties(): allow for return type "static"
Fixed bug #2926 : phpcs hangs when using arrow functions that return heredoc
Added test files (ref #2943)
Fixed bug #2943 : Redundant semicolon added to a file when fixing PSR2.Files.ClosingTag.NotAllowed
Handle square bracket
Generic/ArbitraryParenthesesSpacing: minor clean up
FindEndOfStatementTest: simplify the tests
AbstractSniffUnitTest: bug fix - warnings not counted in total
Add support for aligning multi-line assignments at the start of the assign token
Use getMethodProperties
Add option to disable the check for protected/private function
Fixes detecting usage of $this variable
Variable
$thismust be lowercase, PHP is case sensitive for variables
Do not ignore closures
Hotfix: fn arrow closure - Squiz.Scope.StaticThisUsage
This 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.