Similar issues also fixed in Generic.Functions.FunctionCallArgumentSpacing and Squiz.Formatting.OperatorBracket
Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
Fixed bug #3672 : Incorrect ScopeIndent.IncorrectExact report for match inside array literal
Fixed bug #3694 : Generic.WhiteSpace.SpreadOperatorSpacingAfter does not ignore spread operator in PHP 8.1 first class callables
Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
3.7.1
Fixed bug #3609: Methods/constants with name empty/isset/unset are always reported as error
Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
3.7.0
PHP 8.1 Language Feature Support
PHP_CodeSniffer has run correctly under PHP 8.1 since PHP 8 support was added, but it has not supported new 8.1 language features until this release. Version 3.7.0 adds support for the following PHP 8.1 language features:
Enums
Explicit octal notation
Readonly properties
Intersection types
The never type
Note: Standards and sniffs included with PHP_CodeSniffer have been updated to support these language features, but external standards and sniffs may need updating before they are able to detect them correctly.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps squizlabs/php_codesniffer from 3.6.2 to 3.7.2.
Release notes
Sourced from squizlabs/php_codesniffer's releases.
... (truncated)
Commits
ed8e00d
Prepare for 3.7.2 release53aadb3
FileComment: update year in test filesadd95a7
Merge branch 'feature/tokenizer-php-test-heredoc-tokenization' of https://git...c1f4295
Merge branch 'feature/minor-documentation-fixes' of https://github.com/jrfnl/...4c5af31
Merge branch 'feature/ruleset-explain-plural-vs-singular' of https://github.c...8fd9d04
Merge branch 'php-8.0/generic-arrayindent-test-named-params' of https://githu...c732fec
Changelog for #36941e1b942
Merge branch 'feature/generic-spreadoperatorspacingafter-ignore-first-class-c...e26cc50
Merge branch 'feature/generic-fix-invalid-xml-docs-files' of https://github.c...62dd954
Merge branch 'feature/3362-generic-scopeindent-debug' of https://github.com/j...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)