Release notes
*Sourced from [squizlabs/php_codesniffer's releases](https://github.com/squizlabs/PHP_CodeSniffer/releases).*
> ## 3.4.1
> ## Note for PEAR Users
>
> The PEAR installable version of PHPCS was missing some files, which have been re-included in this release. The result of these omissions were:
> - The `code` report was not previously available for PEAR installs
> - The `Generic.Formatting.SpaceBeforeCast` sniff was not previously available for PEAR installs
> - The `Generic.WhiteSpace.LanguageConstructSpacing` sniff was not previously available for PEAR installs
>
> Thanks to Juliette Reinders Folmer for the patch
>
> ## Changelog
>
> * PHPCS will now refuse to run if any of the required PHP extensions are not loaded
> * Previously, PHPCS only relied on requirements being checked by PEAR and Composer
> * Thanks to Juliette Reinders Folmer for the patch
> * Ruleset XML parsing errors are now displayed in a readable format so they are easier to correct
> * Thanks to Juliette Reinders Folmer for the patch
> * The PSR2 standard no longer throws duplicate errors for spacing around FOR loop parentheses
> * Thanks to Juliette Reinders Folmer for the patch
> * `T_PHPCS_SET` tokens now contain `sniffCode`, `sniffProperty`, and `sniffPropertyValue` indexes
> * Sniffs can use this information instead of having to parse the token content manually
> * Added more guard code for syntax errors to various CSS sniffs
> * Thanks to Juliette Reinders Folmer for the patch
> * `Generic.Commenting.DocComment` error messages now contain the name of the comment tag that caused the error
> * Thanks to Juliette Reinders Folmer for the patch
> * `Generic.ControlStructures.InlineControlStructure` now handles syntax errors correctly
> * Thanks to Juliette Reinders Folmer for the patch
> * `Generic.Debug.JSHint` now longer requires rhino and can be run directly from the npm install
> * Thanks to Juliette Reinders Folmer for the patch
> * `Generic.Files.LineEndings` no longer adds superfluous new line at the end of JS and CSS files
> * Thanks to Juliette Reinders Folmer for the patch
> * `Generic.Formatting.DisallowMultipleStatements` no longer tries fix lines containing `phpcs:ignore` statements
> * Thanks to Juliette Reinders Folmer for the patch
> * `Generic.Functions.FunctionCallArgumentSpacing` now has improved performance and anonymous class support
> * Thanks to Juliette Reinders Folmer for the patch
> * `Generic.WhiteSpace.ScopeIndent` now respects changes to the `exact` property using `phpcs:set` mid-way through a file
> * This allows you change the `exact` rule for only some parts of a file
> * `Generic.WhiteSpace.ScopeIndent` now disables exact indent checking inside all arrays
> * Previously, this was only done when using long array syntax, but it now works for short array syntax as well
> * `PEAR.Classes.ClassDeclaration` now has improved handling of PHPCS annotations and tab indents
> * `PSR12.Classes.ClassInstantiation` has changed it's error code from `MissingParenthesis` to `MissingParentheses`
> * `PSR12.Keywords.ShortFormTypeKeywords` now ignores all spacing inside type casts during both checking and fixing
> * Thanks to Juliette Reinders Folmer for the patch
> * `Squiz.Classes.LowercaseClassKeywords` now examines the class keyword for anonymous classes
> * Thanks to Juliette Reinders Folmer for the patch
> * `Squiz.ControlStructures.ControlSignature` now has improved handling of parse errors
> * Thanks to Juliette Reinders Folmer for the patch
> * `Squiz.Commenting.PostStatementComment` fixer no longer adds a blank line at the start of a JS file that begins with a comment
> * Fixes a conflict between this sniff and the `Squiz.WhiteSpace.SuperfluousWhitespace` sniff
> * Thanks to Juliette Reinders Folmer for the patch
> ... (truncated)
Commits
- [`5b4333b`](https://github.com/squizlabs/PHP_CodeSniffer/commit/5b4333b4010625d29580eb4a41f1e53251be6baa) Prepare for 3.4.1 release
- [`04463b6`](https://github.com/squizlabs/PHP_CodeSniffer/commit/04463b62d61b8bfbf880ca3e745fa9f79ca140e2) This change was incorrect - the sniff error code includes the word CASE (ref ...
- [`0236f34`](https://github.com/squizlabs/PHP_CodeSniffer/commit/0236f34b65603bd2959edcedf82858eeb61aa482) Merge branch 'typos-20190207-a' of https://github.com/phil-davis/PHP_CodeSniffer
- [`8c8c4ff`](https://github.com/squizlabs/PHP_CodeSniffer/commit/8c8c4ff2566630e79c52278ceb6e383795c9f443) Minor documentation fixes
- [`fdcd295`](https://github.com/squizlabs/PHP_CodeSniffer/commit/fdcd295d608176b8f5d97f78b8500d927f9ad80e) Changelog for [#2298](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2298) (ref [#2307](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2307))
- [`9342da1`](https://github.com/squizlabs/PHP_CodeSniffer/commit/9342da10f9017eaa04217c39c78ab87f1059ea02) Merge branch 'webimpress-hotfix/class-declaration-sniff'
- [`b06f50c`](https://github.com/squizlabs/PHP_CodeSniffer/commit/b06f50c65fb011d98b6ff4b1a8cef1195a4101e7) Merge branch 'hotfix/class-declaration-sniff' of https://github.com/webimpres...
- [`a0d57b8`](https://github.com/squizlabs/PHP_CodeSniffer/commit/a0d57b827973fed0623b271b3eeea1778f81f08c) Merge branch 'feature/minor-tweak' of https://github.com/jrfnl/PHP_CodeSniffer
- [`df0b17c`](https://github.com/squizlabs/PHP_CodeSniffer/commit/df0b17cc5765ca382bfcd536b362f53d51580d63) Fixed bug [#2431](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2431) : Use function/const not tokenized as T_STRING when preceded ...
- [`1d06964`](https://github.com/squizlabs/PHP_CodeSniffer/commit/1d0696409d511d2168385e743c0bdbe58b65ccb8) Merge branch 'feature/test-again-php-7.4' of https://github.com/jrfnl/PHP_Cod...
- Additional commits viewable in [compare view](https://github.com/squizlabs/PHP_CodeSniffer/compare/3.4.0...3.4.1)
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.
If all status checks pass Dependabot will automatically merge this pull request.
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 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.
Bumps squizlabs/php_codesniffer from 3.4.0 to 3.4.1.
Release notes
*Sourced from [squizlabs/php_codesniffer's releases](https://github.com/squizlabs/PHP_CodeSniffer/releases).* > ## 3.4.1 > ## Note for PEAR Users > > The PEAR installable version of PHPCS was missing some files, which have been re-included in this release. The result of these omissions were: > - The `code` report was not previously available for PEAR installs > - The `Generic.Formatting.SpaceBeforeCast` sniff was not previously available for PEAR installs > - The `Generic.WhiteSpace.LanguageConstructSpacing` sniff was not previously available for PEAR installs > > Thanks to Juliette Reinders Folmer for the patch > > ## Changelog > > * PHPCS will now refuse to run if any of the required PHP extensions are not loaded > * Previously, PHPCS only relied on requirements being checked by PEAR and Composer > * Thanks to Juliette Reinders Folmer for the patch > * Ruleset XML parsing errors are now displayed in a readable format so they are easier to correct > * Thanks to Juliette Reinders Folmer for the patch > * The PSR2 standard no longer throws duplicate errors for spacing around FOR loop parentheses > * Thanks to Juliette Reinders Folmer for the patch > * `T_PHPCS_SET` tokens now contain `sniffCode`, `sniffProperty`, and `sniffPropertyValue` indexes > * Sniffs can use this information instead of having to parse the token content manually > * Added more guard code for syntax errors to various CSS sniffs > * Thanks to Juliette Reinders Folmer for the patch > * `Generic.Commenting.DocComment` error messages now contain the name of the comment tag that caused the error > * Thanks to Juliette Reinders Folmer for the patch > * `Generic.ControlStructures.InlineControlStructure` now handles syntax errors correctly > * Thanks to Juliette Reinders Folmer for the patch > * `Generic.Debug.JSHint` now longer requires rhino and can be run directly from the npm install > * Thanks to Juliette Reinders Folmer for the patch > * `Generic.Files.LineEndings` no longer adds superfluous new line at the end of JS and CSS files > * Thanks to Juliette Reinders Folmer for the patch > * `Generic.Formatting.DisallowMultipleStatements` no longer tries fix lines containing `phpcs:ignore` statements > * Thanks to Juliette Reinders Folmer for the patch > * `Generic.Functions.FunctionCallArgumentSpacing` now has improved performance and anonymous class support > * Thanks to Juliette Reinders Folmer for the patch > * `Generic.WhiteSpace.ScopeIndent` now respects changes to the `exact` property using `phpcs:set` mid-way through a file > * This allows you change the `exact` rule for only some parts of a file > * `Generic.WhiteSpace.ScopeIndent` now disables exact indent checking inside all arrays > * Previously, this was only done when using long array syntax, but it now works for short array syntax as well > * `PEAR.Classes.ClassDeclaration` now has improved handling of PHPCS annotations and tab indents > * `PSR12.Classes.ClassInstantiation` has changed it's error code from `MissingParenthesis` to `MissingParentheses` > * `PSR12.Keywords.ShortFormTypeKeywords` now ignores all spacing inside type casts during both checking and fixing > * Thanks to Juliette Reinders Folmer for the patch > * `Squiz.Classes.LowercaseClassKeywords` now examines the class keyword for anonymous classes > * Thanks to Juliette Reinders Folmer for the patch > * `Squiz.ControlStructures.ControlSignature` now has improved handling of parse errors > * Thanks to Juliette Reinders Folmer for the patch > * `Squiz.Commenting.PostStatementComment` fixer no longer adds a blank line at the start of a JS file that begins with a comment > * Fixes a conflict between this sniff and the `Squiz.WhiteSpace.SuperfluousWhitespace` sniff > * Thanks to Juliette Reinders Folmer for the patch > ... (truncated)Commits
- [`5b4333b`](https://github.com/squizlabs/PHP_CodeSniffer/commit/5b4333b4010625d29580eb4a41f1e53251be6baa) Prepare for 3.4.1 release - [`04463b6`](https://github.com/squizlabs/PHP_CodeSniffer/commit/04463b62d61b8bfbf880ca3e745fa9f79ca140e2) This change was incorrect - the sniff error code includes the word CASE (ref ... - [`0236f34`](https://github.com/squizlabs/PHP_CodeSniffer/commit/0236f34b65603bd2959edcedf82858eeb61aa482) Merge branch 'typos-20190207-a' of https://github.com/phil-davis/PHP_CodeSniffer - [`8c8c4ff`](https://github.com/squizlabs/PHP_CodeSniffer/commit/8c8c4ff2566630e79c52278ceb6e383795c9f443) Minor documentation fixes - [`fdcd295`](https://github.com/squizlabs/PHP_CodeSniffer/commit/fdcd295d608176b8f5d97f78b8500d927f9ad80e) Changelog for [#2298](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2298) (ref [#2307](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2307)) - [`9342da1`](https://github.com/squizlabs/PHP_CodeSniffer/commit/9342da10f9017eaa04217c39c78ab87f1059ea02) Merge branch 'webimpress-hotfix/class-declaration-sniff' - [`b06f50c`](https://github.com/squizlabs/PHP_CodeSniffer/commit/b06f50c65fb011d98b6ff4b1a8cef1195a4101e7) Merge branch 'hotfix/class-declaration-sniff' of https://github.com/webimpres... - [`a0d57b8`](https://github.com/squizlabs/PHP_CodeSniffer/commit/a0d57b827973fed0623b271b3eeea1778f81f08c) Merge branch 'feature/minor-tweak' of https://github.com/jrfnl/PHP_CodeSniffer - [`df0b17c`](https://github.com/squizlabs/PHP_CodeSniffer/commit/df0b17cc5765ca382bfcd536b362f53d51580d63) Fixed bug [#2431](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2431) : Use function/const not tokenized as T_STRING when preceded ... - [`1d06964`](https://github.com/squizlabs/PHP_CodeSniffer/commit/1d0696409d511d2168385e743c0bdbe58b65ccb8) Merge branch 'feature/test-again-php-7.4' of https://github.com/jrfnl/PHP_Cod... - Additional commits viewable in [compare view](https://github.com/squizlabs/PHP_CodeSniffer/compare/3.4.0...3.4.1)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
.If all status checks pass Dependabot will automatically merge this pull request.
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 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.