Bump squizlabs/php_codesniffer from 3.5.5 to 3.7.1
Bumps squizlabs/php_codesniffer from 3.5.5 to 3.7.1.
Release notes
Sourced from squizlabs/php_codesniffer's releases.
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 patch3.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
nevertypeNote: 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.
Changelog
- Added support for PHP 8.1 explicit octal notation
- This new syntax has been backfilled for PHP versions less than 8.1
- Thanks to Mark Baker (
@MarkBaker) for the patch- Thanks to Juliette Reinders Folmer (
@jrfnl) for additional fixes- Added support for PHP 8.1 enums
- This new syntax has been backfilled for PHP versions less than 8.1
- Includes a new
T_ENUM_CASEtoken to represent the case statements inside an enum- Thanks to Jaroslav Hanslík (
@kukulich) for the patch- Thanks to Juliette Reinders Folmer (
@jrfnl) for additional core and sniff support- Added support for the PHP 8.1 readonly token
- Tokenzing of the readonly keyword has been backfilled for PHP versions less than 8.1
- Thanks to Jaroslav Hanslík (
@kukulich) for the patch- Added support for PHP 8.1 intersection types
- Includes a new
T_TYPE_INTERSECTIONtoken to represent the ampersand character inside intersection types- Thanks to Jaroslav Hanslík (
@kukulich) for the patchFile::getMethodParametersnow supports the new PHP 8.1 readonly token
- When constructor property promotion is used, a new
property_readonlyarray index is included in the return value
- This is a boolean value indicating if the property is readonly
- If the readonly token is detected, a new
readonly_tokenarray index is included in the return value
- This contains the token index of the readonly keyword
- Thanks to Juliette Reinders Folmer (
@jrfnl) for the patch- Support for new PHP 8.1 readonly keyword has been added to the following sniffs:
Generic.PHP.LowerCaseKeywordPSR2.Classes.PropertyDeclarationSquiz.Commenting.BlockCommentSquiz.Commenting.DocCommentAlignmentSquiz.Commenting.VariableCommentSquiz.WhiteSpace.ScopeKeywordSpacing- Thanks to Juliette Reinders Folmer (
@jrfnl) for the patches- The parallel feature is now more efficient and runs faster in some situations due to improved process management
- Thanks to Sergei Morozov (
@morozov) for the patch- The list of installed coding standards now has consistent ordering across all platforms
... (truncated)
Commits
1359e17Prepare for 3.7.1 release0f02e3eUpdated changelog message for #3609f035ed3Changelog for #3609 (ref #3610)3726154Merge branch 'feature/3609-bugfix-context-sensitive-keyword-empty' of https:/...5f78900Tokenizer/PHP: bug fix in improved context sensitive keyword supporta2cd51bPrepare for 3.7.0 released8313c6Changelog for #3604fe4dde5Merge branch 'feature/tokenizer-php-bugfix-double-quoted-strings' of https://...7f5c55dMerge branch 'php-8.1/tokenizer-php-bugfix-octal-explicit-notation' of https:...e9f6c43Changelog for #3575- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Code Climate has analyzed commit acb25b52 and detected 0 issues on this pull request.
View more on Code Climate.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.