Release notes
*Sourced from [squizlabs/php_codesniffer's releases](https://github.com/squizlabs/PHP_CodeSniffer/releases).*
> ## 3.3.2
> * Fixed a problem where the report cache was not being cleared when the sniffs inside a standard were updated
> * The info report (`--report=info`) now has improved formatting for metrics that span multiple lines
> * Thanks to Juliette Reinders Folmer for the patch
> * The unit test runner now skips `.bak` files when looking for test cases
> * Thanks to Juliette Reinders Folmer for the patch
> * The Squiz standard now ensures underscores are not used to indicate visibility of private members vars and methods
> * Previously, this standard enforced the use of underscores
> * `Generic.PHP.NoSilencedErrors` error messages now contain a code snippet to show the context of the error
> * Thanks to Juliette Reinders Folmer for the patch
> * `Squiz.Arrays.ArrayDeclaration` no longer reports errors for a comma on a line new after a here/nowdoc
> * Also stops a parse error being generated when auto-fixing
> * The `SpaceBeforeComma` error message has been changed to only have one data value instead of two
> * `Squiz.Commenting.FunctionComment` no longer errors when trying to fix indents of multi-line param comments
> * `Squiz.Formatting.OperatorBracket` now correctly fixes statements that contain strings
> * `Squiz.PHP.CommentedOutCode` now ignores more [**-style**](https://github.com/-style) annotations and includes better comment block detection
> * Thanks to Juliette Reinders Folmer for the patch
> * Fixed a problem where referencing a relative file path in a ruleset XML file could add unnecessary sniff exclusions
> * This didn't actually exclude anything, but caused verbose output to list strange exclusion rules
> * Fixed bug [#2110](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2110) : Squiz.WhiteSpace.FunctionSpacing is removing indents from the start of functions when fixing
> * Thanks to Juliette Reinders Folmer for the patch
> * Fixed bug [#2115](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2115) : Squiz.Commenting.VariableComment not checking var types when the [**var**](https://github.com/var) line contains a comment
> * Fixed bug [#2120](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2120) : Tokenizer fails to match T_INLINE_ELSE when used after function call containing closure
> * Fixed bug [#2121](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2121) : Squiz.PHP.DisallowMultipleAssignments false positive in while loop conditions
> * Thanks to Juliette Reinders Folmer for the patch
> * Fixed bug [#2127](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2127) : File::findExtendedClassName() doesn't support nested classes
> * Thanks to Juliette Reinders Folmer for the patch
> * Fixed bug [#2138](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2138) : Tokenizer detects wrong token for php ::class feature with spaces
> * Fixed bug [#2143](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2143) : PSR2.Namespaces.UseDeclaration does not properly fix "use function" and "use const" statements
> * Thanks to Chris Wilkinson for the patch
> * Fixed bug [#2144](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2144) : Squiz.Arrays.ArrayDeclaration does incorrect align calculation in array with cyrillic keys
> * Fixed bug [#2146](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2146) : Zend.Files.ClosingTag removes closing tag from end of file without inserting a semicolon
> * Fixed bug [#2151](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2151) : XML schema not updated with the new array property syntax
Commits
- See full diff in [compare view](https://github.com/squizlabs/PHP_CodeSniffer/commits/3.3.2)
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.
Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking Bump now in your Dependabot dashboard.
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 cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Updates the requirements on squizlabs/php_codesniffer to permit the latest version.
Release notes
*Sourced from [squizlabs/php_codesniffer's releases](https://github.com/squizlabs/PHP_CodeSniffer/releases).* > ## 3.3.2 > * Fixed a problem where the report cache was not being cleared when the sniffs inside a standard were updated > * The info report (`--report=info`) now has improved formatting for metrics that span multiple lines > * Thanks to Juliette Reinders Folmer for the patch > * The unit test runner now skips `.bak` files when looking for test cases > * Thanks to Juliette Reinders Folmer for the patch > * The Squiz standard now ensures underscores are not used to indicate visibility of private members vars and methods > * Previously, this standard enforced the use of underscores > * `Generic.PHP.NoSilencedErrors` error messages now contain a code snippet to show the context of the error > * Thanks to Juliette Reinders Folmer for the patch > * `Squiz.Arrays.ArrayDeclaration` no longer reports errors for a comma on a line new after a here/nowdoc > * Also stops a parse error being generated when auto-fixing > * The `SpaceBeforeComma` error message has been changed to only have one data value instead of two > * `Squiz.Commenting.FunctionComment` no longer errors when trying to fix indents of multi-line param comments > * `Squiz.Formatting.OperatorBracket` now correctly fixes statements that contain strings > * `Squiz.PHP.CommentedOutCode` now ignores more [**-style**](https://github.com/-style) annotations and includes better comment block detection > * Thanks to Juliette Reinders Folmer for the patch > * Fixed a problem where referencing a relative file path in a ruleset XML file could add unnecessary sniff exclusions > * This didn't actually exclude anything, but caused verbose output to list strange exclusion rules > * Fixed bug [#2110](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2110) : Squiz.WhiteSpace.FunctionSpacing is removing indents from the start of functions when fixing > * Thanks to Juliette Reinders Folmer for the patch > * Fixed bug [#2115](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2115) : Squiz.Commenting.VariableComment not checking var types when the [**var**](https://github.com/var) line contains a comment > * Fixed bug [#2120](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2120) : Tokenizer fails to match T_INLINE_ELSE when used after function call containing closure > * Fixed bug [#2121](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2121) : Squiz.PHP.DisallowMultipleAssignments false positive in while loop conditions > * Thanks to Juliette Reinders Folmer for the patch > * Fixed bug [#2127](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2127) : File::findExtendedClassName() doesn't support nested classes > * Thanks to Juliette Reinders Folmer for the patch > * Fixed bug [#2138](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2138) : Tokenizer detects wrong token for php ::class feature with spaces > * Fixed bug [#2143](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2143) : PSR2.Namespaces.UseDeclaration does not properly fix "use function" and "use const" statements > * Thanks to Chris Wilkinson for the patch > * Fixed bug [#2144](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2144) : Squiz.Arrays.ArrayDeclaration does incorrect align calculation in array with cyrillic keys > * Fixed bug [#2146](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2146) : Zend.Files.ClosingTag removes closing tag from end of file without inserting a semicolon > * Fixed bug [#2151](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2151) : XML schema not updated with the new array property syntaxCommits
- See full diff in [compare view](https://github.com/squizlabs/PHP_CodeSniffer/commits/3.3.2)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
.Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking
Bump now
in your Dependabot dashboard.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 cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.