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:
squizlabs/php_codesniffer: 3.7.2 (updated from 3.6.2)
Release notes
Here are the release notes for all versions released between your current running version, and the version this PR updates the package to.
List of release notes
- [Release notes for tag 3.7.2](https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.7.2)
- [Release notes for tag 3.7.1](https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.7.1)
- [Release notes for tag 3.7.0](https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.7.0)
Changed files
Here is a list of changed files between the version you use, and the version this pull request updates to:
d174d8c95Merge branch 'PHP8.1_Support-for-explicit-octal-notation' of https://github.com/MarkBaker/PHP_CodeSniffer
878472a84Build the phar without stripping whitespace and comments to allow for PHP 8.1 support
b363a7c65Move code block down after the initial comment processing logic. Check for lower- or upper-case 'o'. Don't adjust $token and $tokens variables; but set the token in $finalTokens, and adjust pointers.
2c4f3cc1fGeneric/[Upper|Lower]CaseConstant: ignore type declarations
e908da764PHP 8.1: File::getMemberProperties() detects if property is readonly
0033bb04ePHP 8.1: Added support for "readonly" keyword
8a6979d51Unit tests to verify that the PHP 7.4 underscore in numeric values still works correctly with Explicit octal values when they have to be backfilled
8ada8fc33Tokenizer code changes for converting an explicit PHP 8.1 octal reference (e.g."0o777") from two separate T_NUMBER and T_STRING tokens into a single T_NUMBER token with the correct value
2a3eef659Unit tests for converting an explicit PHP 8.1 octal reference (e.g."0o777") from two separate T_NUMBER and T_STRING tokens into a single T_NUMBER token with the correct value
783d9461eGeneric/ScopeIndent: minor bug fix (undefined array index)
77cd2c893PHP 8.0 | Generic/ArrayIndent: add tests with named function call parameters
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.
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:
Release notes
Here are the release notes for all versions released between your current running version, and the version this PR updates the package to.
List of release notes
- [Release notes for tag 3.7.2](https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.7.2) - [Release notes for tag 3.7.1](https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.7.1) - [Release notes for tag 3.7.0](https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.7.0)Changed files
Here is a list of changed files between the version you use, and the version this pull request updates to:
List of changed files
.github/workflows/phpstan.yml .github/workflows/test.yml .github/workflows/validate.yml CodeSniffer.conf.dist README.md composer.json package.xml scripts/build-phar.php src/Config.php src/Files/File.php src/Reports/Code.php src/Reports/Gitblame.php src/Reports/Hgblame.php src/Reports/Svnblame.php src/Ruleset.php src/Runner.php src/Sniffs/AbstractArraySniff.php src/Sniffs/Sniff.php src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml src/Standards/Generic/Docs/Formatting/SpaceAfterNotStandard.xml src/Standards/Generic/Docs/WhiteSpace/ArbitraryParenthesesSpacingStandard.xml src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php src/Standards/Generic/Sniffs/Classes/OpeningBraceSameLineSniff.php src/Standards/Generic/Sniffs/Files/OneClassPerFileSniff.php src/Standards/Generic/Sniffs/Files/OneInterfacePerFileSniff.php src/Standards/Generic/Sniffs/Files/OneObjectStructurePerFileSniff.php src/Standards/Generic/Sniffs/Files/OneTraitPerFileSniff.php src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php src/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php src/Standards/Generic/Sniffs/PHP/DisallowRequestSuperglobalSniff.php src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php src/Standards/Generic/Sniffs/PHP/LowerCaseTypeSniff.php src/Standards/Generic/Sniffs/PHP/UpperCaseConstantSniff.php src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php src/Standards/Generic/Sniffs/WhiteSpace/SpreadOperatorSpacingAfterSniff.php src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.inc src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.inc.fixed src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc.fixed src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.inc src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.php src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.inc src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc.fixed src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc.fixed src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc.fixed src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.inc src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.inc.fixed src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.3.inc src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.3.inc.fixed src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc.fixed src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc.fixed src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.inc src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.inc.fixed src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php src/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php src/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php src/Standards/PEAR/Sniffs/NamingConventions/ValidClassNameSniff.php src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.1.inc src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.1.inc.fixed src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.3.inc src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc.fixed src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php src/Standards/PSR1/Sniffs/Classes/ClassDeclarationSniff.php src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.3.inc src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.1.inc src/Standards/PSR12/Sniffs/Classes/AnonClassDeclarationSniff.php src/Standards/PSR12/Sniffs/Classes/ClassInstantiationSniff.php src/Standards/PSR12/Sniffs/Classes/ClosingBraceSniff.php src/Standards/PSR12/Sniffs/Properties/ConstantVisibilitySniff.php src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc.fixed src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.inc src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.inc src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.inc.fixed src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.inc src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.inc.fixed src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.inc src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.inc src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.inc.fixed src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php src/Standards/PSR2/Sniffs/Namespaces/UseDeclarationSniff.php src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc.fixed src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc.fixed src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc.fixed src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php src/Standards/Squiz/Sniffs/Classes/ClassFileNameSniff.php src/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php src/Standards/Squiz/Sniffs/Commenting/ClosingDeclarationCommentSniff.php src/Standards/Squiz/Sniffs/Commenting/DocCommentAlignmentSniff.php src/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php src/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php src/Standards/Squiz/Sniffs/ControlStructures/ForLoopDeclarationSniff.php src/Standards/Squiz/Sniffs/Files/FileExtensionSniff.php src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php src/Standards/Squiz/Sniffs/PHP/DisallowComparisonAssignmentSniff.php src/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php src/Standards/Squiz/Sniffs/WhiteSpace/ScopeKeywordSpacingSniff.php src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc.fixed src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc.fixed src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc.fixed src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc.fixed src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc.fixed src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.js.fixed src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.9.inc src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc.fixed src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.5.inc src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc.fixed src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.2.inc src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc.fixed src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc.fixed src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc.fixed src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php src/Tokenizers/PHP.php src/Tokenizers/Tokenizer.php src/Util/Common.php src/Util/Standards.php src/Util/Tokens.php tests/Core/Autoloader/DetermineLoadedClassTest.php tests/Core/File/FindEndOfStatementTest.inc tests/Core/File/FindImplementedInterfaceNamesTest.inc tests/Core/File/FindImplementedInterfaceNamesTest.php tests/Core/File/FindStartOfStatementTest.php tests/Core/File/GetMemberPropertiesTest.inc tests/Core/File/GetMemberPropertiesTest.php tests/Core/File/GetMethodParametersTest.inc tests/Core/File/GetMethodParametersTest.php tests/Core/File/GetMethodPropertiesTest.inc tests/Core/File/GetMethodPropertiesTest.php tests/Core/File/IsReferenceTest.inc tests/Core/Tokenizer/AttributesTest.php tests/Core/Tokenizer/BackfillEnumTest.inc tests/Core/Tokenizer/BackfillEnumTest.php tests/Core/Tokenizer/BackfillExplicitOctalNotationTest.inc tests/Core/Tokenizer/BackfillExplicitOctalNotationTest.php tests/Core/Tokenizer/BackfillNumericSeparatorTest.inc tests/Core/Tokenizer/BackfillNumericSeparatorTest.php tests/Core/Tokenizer/BackfillReadonlyTest.inc tests/Core/Tokenizer/BackfillReadonlyTest.php tests/Core/Tokenizer/BitwiseOrTest.inc tests/Core/Tokenizer/BitwiseOrTest.php tests/Core/Tokenizer/ContextSensitiveKeywordsTest.inc tests/Core/Tokenizer/ContextSensitiveKeywordsTest.php tests/Core/Tokenizer/DoubleQuotedStringTest.inc tests/Core/Tokenizer/DoubleQuotedStringTest.php tests/Core/Tokenizer/EnumCaseTest.inc tests/Core/Tokenizer/EnumCaseTest.php tests/Core/Tokenizer/GotoLabelTest.inc tests/Core/Tokenizer/GotoLabelTest.php tests/Core/Tokenizer/HeredocNowdocCloserTest.inc tests/Core/Tokenizer/HeredocNowdocCloserTest.php tests/Core/Tokenizer/HeredocStringTest.inc tests/Core/Tokenizer/HeredocStringTest.php tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.inc tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php tests/Core/Tokenizer/ScopeSettingWithNamespaceOperatorTest.inc tests/Core/Tokenizer/ShortArrayTest.inc tests/Core/Tokenizer/ShortArrayTest.php tests/Core/Tokenizer/TypeIntersectionTest.inc tests/Core/Tokenizer/TypeIntersectionTest.phpChangelog
Here is a list of changes between the version you use, and the version this pull request updates to:
Prepare for 3.7.2 release
FileComment: update year in test files
Merge branch 'feature/tokenizer-php-test-heredoc-tokenization' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/minor-documentation-fixes' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/ruleset-explain-plural-vs-singular' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.0/generic-arrayindent-test-named-params' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3694
Merge branch 'feature/generic-spreadoperatorspacingafter-ignore-first-class-callables' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-fix-invalid-xml-docs-files' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/3362-generic-scopeindent-debug' of https://github.com/jrfnl/PHP_CodeSniffer
Tokenizer/PHP: add tests for consistent tokenization heredocs with interpolated strings
Changelog for #3639
Merge branch 'feature/tokenizer-improve-handling-php73-flexible-heredoc-nowdoc' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3640
Merge branch 'feature/generic-disallowtabindent-bugfix-php73-flexible-heredoc-nowdoc' of https://github.com/jrfnl/PHP_CodeSniffer
NamedFunctionCallArgumentsTest: add test with enum keyword
Merge branch 'feature/ghactions-dont-use-set-output' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/various-minor-fixes' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.1 | Generic/SpreadOperatorSpacingAfter: ignore spread operator in first class callables
GH Actions: fix use of deprecated
set-output``Various minor code tweaks
GetMethodPropertiesTest: remove stray docblock opener
GetMethodParametersTest: sync the order of the data sets with the test case file
FindEndOfStatementTest: fix broken test
GetMemberPropertiesTest: sync the order of the data sets with the test case file
IsReferenceTest: fix two unintentional parse errors in the test case file
ScopeSettingWithNamespaceOperatorTest: fix unintentional parse error
Fixed bug #3672 : Incorrect ScopeIndent.IncorrectExact report for match inside array literal
Docs: fix invalid XML docs for three sniffs
Changelog for #3668 (ref #3669, #3670, #3671)
Merge branch 'feature/3668-psr12-classinstantiation-fix-regression' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/squiz-operatorbracket-fix-regression-parent' of https://github.com/jrfnl/PHP_CodeSniffer
Squiz/OperatorBracket: fix regression for
new parent``Generic/FunctionCallArgumentSpacing: fix regression for
new parent``PSR12/ClassInstantiation: fix regression for
new parent``Fixed bug #3666 : PEAR.Functions.FunctionCallSignature incorrect indent fix when checking mixed HTML/PHP files
Changelog for #3632
Merge branch 'feature/tokenizer-php-bug-fix-short-list-in-non-braced-control-structure' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3630
Renamed method for consistency (ref #3630)
Merge branch 'feature/3621-out-of-memory-error-notice' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3653
Squiz.Formatting.OperatorBracket no longer reports false positives in match() structures
Merge branch 'operator-spacing' of https://github.com/kukulich/PHP_CodeSniffer
Changelog for #3655
Add "static analysis" Composer keyword
Changelog for #3660
Generic/LowerCaseType: examine types in arrow function declarations
Fixed false positives for match() in OperatorSpacingSniff
Changelog for #3645
Simplified logic for #3645
Handle child process failing
Tokenizer: apply tab replacement to heredoc/nowdoc closers
PHP 7.3 | Generic/DisallowTabIndent: add support for flexible heredocs/nowdocs
Tokenizer/PHP: bug fix for short list tokens in control structures without braces
Runner: show actionable information when PHPCS runs out of memory
Changelog for #3618 (ref #3619)
Merge branch 'feature/3618-generic-arbitrary-parentheses-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
CHangelog for #3616 (ref #3624)
Removed for consistency
Squiz/DisallowComparisonAssignment: bug fix - ignore match structures
Tokens::$functionNameTokens: include the
parentkeyword
Prepare for 3.7.1 release
Updated changelog message for #3609
Changelog for #3609 (ref #3610)
Merge branch 'feature/3609-bugfix-context-sensitive-keyword-empty' of https://github.com/jrfnl/PHP_CodeSniffer
Tokenizer/PHP: bug fix in improved context sensitive keyword support
Prepare for 3.7.0 release
Changelog for #3604
Merge branch 'feature/tokenizer-php-bugfix-double-quoted-strings' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php-8.1/tokenizer-php-bugfix-octal-explicit-notation' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3575
Merge branch 'feature/squiz-methodscope-handle-unconventional-spacing' of https://github.com/jrfnl/PHP_CodeSniffer
Tokenizer/PHP: bug fix in improved context sensitive keyword support [2]
Tokenizer/PHP: bug fix in improved context sensitive keyword support [1]
Tokenizer/PHP/DoubleQuotedStringTest: document how parse errors are handled
Tokenizer/PHP: bug fix for double quoted strings using
${``Merge branch 'feature/generic-one-oo-perfile-sniff-efficiency-tweak' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/ghactions-update-composer-action' of https://github.com/jrfnl/PHP_CodeSniffer
PHP 8.1: Added missing tests of intersection types for LowerCaseTypeSniff
Changelog for #3581
PHP 8.1: Support of intersection types
Resolve T_READONLY earlier
Documentation: various minor fixes
Changelog for #3582
Merge branch 'never' of https://github.com/kukulich/PHP_CodeSniffer
PHP 8.1: Support of "never" type
File::getMemberProperties(): minor tweaks after readonly merge
Updated changelog
Merge branch 'feature/file-getimplementedinterfacenames-add-enum-support' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/file-getmemberprops-throw-exception-for-enums' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/generic-lowercasekeyword-simplify-and-enum-support' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3573
BackfillExplicitOctalNotationTest: refactor and improve the test
PHP 8.1 | Tokenizer/PHP: hotfix for overeager explicit octal notation backfill
File::getMemberProperties(): handle enum properties same as interface properties
PHP 8.1 | File::findImplementedInterfaceNames(): add support for enums implementing interfaces
Squiz/MethodScope: bugfix for unconventional spacing
PHP 8.1 | Generic/LowerCaseKeyword: simplify registered tokens + add enum support
Squiz/ScopeClosingBrace: add tests for enum support
Squiz/DocCommentAlignment: add support for enums
Squiz/ClosingDeclarationComment: add support for enums
PSR12/OpeningBraceSpace: add tests for enum support
PEAR/ScopeClosingBrace: add tests for enum support
Merge branch 'documentation-sniff' of https://github.com/sjokkateer/PHP_CodeSniffer
Merge branch 'feature/ghactions-update-various-actions' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3539
Merge branch 'feature/predictable-standards-order' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'patch-1' of https://github.com/jeffersonsimaogoncalves/PHP_CodeSniffer
Merge branch 'feature/ghactions-fix-xmllint' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'php81-enum' of https://github.com/kukulich/PHP_CodeSniffer
Update README.md
GH Actions/CS: fix build failure
Changelog for #3552
Merge branch 'feature/tokenizer-php-octal-notation-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3550 (ref #3551)
Merge branch 'feature/3550-psr2-switchstatement-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Squiz/ControlStructureSpacing: fix the enum test
Squiz/StaticThisUsage: improve enum tests
Squiz/NonExecutableCode: minor test tweak
Squiz/ValidClassName: improve enum tests + bugfix
Squiz/LowercaseClassKeywords: improve enum tests
Squiz/ClassFileName: improve enum tests
Squiz/InlineComment: fix enum test
PSR12/UseDeclaration: improve enum tests
PEAR/ValidClassName: improve enum tests
Generic/ValidFunctionName: improve enum tests
Generic/CamelCapsFunctionName: improve enum tests
Generic/DuplicateClassName: improve enum tests
File::getDeclarationName(): tweak method description
PHP 8.1: Squiz/StaticThisUsage - Added support for enums
PHP 8.1: Squiz/ControlStructureSpacing - Enums should be ignored
PHP 8.1: Squiz/FileExtension - Added support for enums
PHP 8.1: Squiz/InlineComment - Enums should be ignored
PHP 8.1: Squiz/FileComment - Added support for enums
PHP 8.1: Squiz/BlockComment - Enums should be ignored
PHP 8.1: Squiz/ValidClassName - Added support for enums
PHP 8.1: Squiz/ClassFileName - Added support for enums
PHP 8.1: PSR2/UseDeclaration - Added support for enums
PHP 8.1: PSR1/SideEffects - Added support for enums
PHP 8.1: PSR1/ClassDeclaration - Added support for enums
PHP 8.1: PSR12/ClosingBrace - Added support for enums
PHP 8.1: PEAR/ValidClassName - Added support for enums
PHP 8.1: PEAR/FileComment - Added support for enums
PHP 8.1: PEAR/ClassComment - Added support for enums
PHP 8.1: PEAR/ClassDeclaration - Added support for enums
PHP 8.1: Generic/LowerCaseKeyword - Added support for enums
PHP 8.1: Generic/OneObjectStructurePerFile - Added support for enums
PHP 8.1: Generic/OpeningBraceSameLine - Added support for enums
PHP 8.1: Generic/DuplicateClassName - Added support for enums
PHP 8.1: Generic/CamelCapsFunctionName - Added tests for enums support
PHP 8.1: PEAR/ValidFunctionName - Added tests for enums support
PHP 8.1: File::getDeclarationName() supports enums
PHP 8.1: PSR12/ImportStatement - Added test for enums support
PHP 8.1: PSR12/ConstantVisibility - Added tests for enums support
PHP 8.1: PSR12/UseDeclaration - Added tests for enums support
PHP 8.1: PSR2/MethodDeclaration - Added tests for enums support
PHP 8.1: Squiz/LowercaseClassKeywords - Added test for enums support
PHP 8.1: Squiz/NonExecutableCode - Added test for enums support
PHP 8.1: Squiz/MethodScope - Added tests for enums support
PHP 8.1: Squiz/MemberVarSpacing - Added test for enums support
PHP 8.1: Zend/ValidVariableName - Added tests for enums support
PHP 8.1: Squiz/ValidVariableName - Added tests for enums support
[Fix] Docblock of Sniff::process()
Updated changelog for T_ENUM_CASE (ref #3483)
Merge branch 'php81-enum-case' of https://github.com/kukulich/PHP_CodeSniffer
GH Actions: version update for various predefined actions
PHP 8.1 | Tokenizer/PHP: bug fix for overeager explicit octal notation backfill
PSR2/SwitchDeclaration: bug fix when determining terminating statement
Changelog for #3546
Merge branch 'feature/tokenizer-php-bugfix-context-sensitive-keywords' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3519 (ref #3144)
Got rid of some IF nesting by continuing early (ref #3519)
Merge branch 'issues/3144' of https://github.com/morozov/php-code-sniffer
Changelog for #3534
Merge branch 'php8.1/tokenizer-php-bugfix-enum-name-vs-goto-label' of https://github.com/jrfnl/PHP_CodeSniffer
Tokenizer/PHP: bug fix - parent/static keywords in class instantiations
Merge branch 'feature/config-file-nitpick' of https://github.com/jrfnl/PHP_CodeSniffer
QA: minor code simplification
Ruleset::explain(): fix plural vs singular phrasing
PHPCS -i: display standards in same order cross-platform
CodeSniffer.conf: end code with semicolon
Tests/BackfillEnum: update token calculations
PHP 8.1 | Tokenizer/PHP: bugfix - name of typed enum tokenized as T_GOTO_LABEL
PHP 8.1: Enum case name should be always tokenized as T_STRING
PHP 8.1: Added T_ENUM_CASE
Changelog for #3517
Changelog for #3516
Merge branch 'feature/squiz-sopekeywordspacing-readonly' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/file-getmethodparams-add-support-for-readonly' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3505 (ref #3506)
Merge branch 'Issue-3505_NullSafe-Operator-in-Cyclomatic-Complexity-Sniff' of https://github.com/MarkBaker/PHP_CodeSniffer
Changelog for #3332 (ref #3429)
Have the uppercase sniff extend the lowercase one to remove duplicate code
Merge branch 'feature/3332-generic-upperlowercaseconstant-ignore-type-declarations' of https://github.com/jrfnl/PHP_CodeSniffer
Changelog for #3474 (ref #3478)
PHP 8.1: Added support for "enum" keyword
Merge branch 'context-sensitive' of https://github.com/kukulich/PHP_CodeSniffer
Fixed bug #3530 : Line indented incorrectly false positive when using match-expression inside switch case
Changelog for #3526 (ref #3527)
PHP 8.1 | PSR12/ConstantVisibility: allow for class constants to be
final``Get rid of busy-waiting in the parent process
Merge branch 'pclose' of https://github.com/jtojnar/PHP_CodeSniffer
Merge branch 'feature/update-copyright-2022' of https://github.com/jrfnl/PHP_CodeSniffer
FileComment: update year in test file
Close popen handle with pclose
GH Actions: version update for
ramsey/composer-install``Tokenizer/PHP: fix incorrect condition order
Removed dead code
Improved tokenizing of context sensitive keywords
PHP 8.1 | File::getMethodParameters(): allow for readonly keyword
PHP 8.1 | Squiz/ScopeKeywordSpacing: allow for readonly keyword
Fixed bug #3502 : A match statement within an array produces Squiz.Arrays.ArrayDeclaration.NoKeySpecified
Fixed bug #3503 : Squiz.Commenting.FunctionComment.ThrowsNoFullStop false positive when one line @throw
Changelog for readonly sniff support
Merge branch 'feature/generic-lowercasekeyword-readonly' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/squiz-blockcomment-readonly' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/squiz-doccommentalignment-readonly' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/squiz-variable-comment-readonly' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/psr2-propertydeclaration-readonly' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/tokenizer-php-bugfix-readonly-union-types' of https://github.com/jrfnl/PHP_CodeSniffer
Merge branch 'feature/tokenizer-php-bugfix' of https://github.com/jrfnl/PHP_CodeSniffer
Tokenizer/PHP: readonly vs union types bug fix
PSR2/PropertyDeclaration: allow for readonly keyword
Squiz/VariableComment: allow for readonly keyword
Squiz/DocCommentAlignment: allow for readonly keyword
Squiz/BlockComment: prevent false positives for readonly keyword
Generic/LowerCaseKeyword: allow for readonly keyword
Tokenizer/PHP: readonly bug fix
Build Phar: add custom "strip whitespace and comments" function
Include NullSafe operator in calculation for Cyclomatic Complexity Sniff, with appropriate unit tests
Build Phar: show more debug information
Build Phar: minor tweak to allow testing the script on Windows
GH Actions: change the building of the (release) PHARs to PHP 8.0
GH Actions: split PHAR build test from other tests
Minor cleanup of readonly keyword support
Merge branch 'php81-readonly' of https://github.com/kukulich/PHP_CodeSniffer
Changelog + PEAR entries for #3481
Added test for capitalised O (ref #3481)
Use standard naming format (ref #3481)
Merge branch 'PHP8.1_Support-for-explicit-octal-notation' of https://github.com/MarkBaker/PHP_CodeSniffer
Build the phar without stripping whitespace and comments to allow for PHP 8.1 support
Move code block down after the initial comment processing logic. Check for lower- or upper-case 'o'. Don't adjust $token and $tokens variables; but set the token in $finalTokens, and adjust pointers.
We should only be testing for T_LNUMBER
Additional test case for capital O when expressing explicit octal values
Rename test files to identify that this is backfill functionality
Adjust explicit octal tag in NumericSeparator test
Generic/One*PerFile sniffs: efficiency tweak
Generic/[Upper|Lower]CaseConstant: ignore type declarations
PHP 8.1: File::getMemberProperties() detects if property is readonly
PHP 8.1: Added support for "readonly" keyword
Unit tests to verify that the PHP 7.4 underscore in numeric values still works correctly with Explicit octal values when they have to be backfilled
Tokenizer code changes for converting an explicit PHP 8.1 octal reference (e.g."0o777") from two separate T_NUMBER and T_STRING tokens into a single T_NUMBER token with the correct value
Unit tests for converting an explicit PHP 8.1 octal reference (e.g."0o777") from two separate T_NUMBER and T_STRING tokens into a single T_NUMBER token with the correct value
Generic/ScopeIndent: minor bug fix (undefined array index)
PHP 8.0 | Generic/ArrayIndent: add tests with named function call parameters
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.