Release notes
*Sourced from [squizlabs/php_codesniffer's releases](https://github.com/squizlabs/PHP_CodeSniffer/releases).*
> ## 3.4.2
> * `Squiz.Arrays.ArrayDeclaration` now has improved handling of syntax errors
> * Fixed an issue where the PCRE JIT on PHP 7.3 caused PHPCS to die when using the parallel option
> * PHPCS now disables the PCRE JIT before running
> * Fixed bug [#2368](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2368) : MySource.PHP.AjaxNullComparison throws error when first function has no doc comment
> * Fixed bug [#2414](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2414) : Indention false positive in switch/case/if combination
> * Fixed bug [#2423](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2423) : Squiz.Formatting.OperatorBracket.MissingBrackets error with static
> * Fixed bug [#2450](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2450) : Indentation false positive when closure containing nested IF conditions used as function argument
> * Fixed bug [#2452](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2452) : LowercasePHPFunctions sniff failing on "new \File()"
> * Fixed bug [#2453](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2453) : Squiz.CSS.SemicolonSpacingSniff false positive when style name proceeded by an asterisk
> * Thanks to Juliette Reinders Folmer for the patch
> * Fixed bug [#2464](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2464) : Fixer conflict between Generic.WhiteSpace.ScopeIndent and Squiz.WhiteSpace.ScopeClosingBrace when class indented 1 space
> * Fixed bug [#2465](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2465) : Excluding a sniff by path is not working
> * Fixed bug [#2467](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2467) : PHP open/close tags inside CSS files are replaced with internal PHPCS token strings when auto fixing
>
> ## 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
> ... (truncated)
Commits
- [`b8a7362`](https://github.com/squizlabs/PHP_CodeSniffer/commit/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8) Prepare for 3.4.2 release
- [`ac3ec98`](https://github.com/squizlabs/PHP_CodeSniffer/commit/ac3ec982f8cce86f0c372a46cb03580bdd47668e) Merge branch 'patch-1' of https://github.com/donatj/PHP_CodeSniffer
- [`c09a4e1`](https://github.com/squizlabs/PHP_CodeSniffer/commit/c09a4e1a2f3f6fe4a628e72b5e61ad35b309ed02) Fixed an issue where the PCRE JIT on PHP 7.3 caused PHPCS to die when using t...
- [`c253459`](https://github.com/squizlabs/PHP_CodeSniffer/commit/c253459e3341244486d5bcce65105e433df3f3a5) PHP_CodeSniffer\Exceptions\RuntimeException extends \RuntimeException
- [`dd3f6e0`](https://github.com/squizlabs/PHP_CodeSniffer/commit/dd3f6e0813e0c67a2a30c53abc724377cb6db2f2) Changelog + unit tests for [#2368](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2368)
- [`89888ba`](https://github.com/squizlabs/PHP_CodeSniffer/commit/89888ba2d19488bcff0934bf8b69645727a9c8fd) Merge branch 'fix-ajaxnullcomparison-sniff' of https://github.com/MariusLab/P...
- [`ce2aa58`](https://github.com/squizlabs/PHP_CodeSniffer/commit/ce2aa584826358f3d3078daf0c5b262c813f71e7) Fixed bug [#2423](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2423) : Squiz.Formatting.OperatorBracket.MissingBrackets error with...
- [`fd2158b`](https://github.com/squizlabs/PHP_CodeSniffer/commit/fd2158b71fc1492ed49ef3e0058ccce7331b5a8d) Remove PHP tags so pear validate doesn't complain
- [`c69d63f`](https://github.com/squizlabs/PHP_CodeSniffer/commit/c69d63fb869e7659a6043ce8a980fd7364585cd0) Fixed bug [#2464](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2464) : Fixer conflict between Generic.WhiteSpace.ScopeIndent and S...
- [`7e1a4f6`](https://github.com/squizlabs/PHP_CodeSniffer/commit/7e1a4f68862ed2d74feee98aaa768ea18ef5e573) Squiz.Arrays.ArrayDeclaration now has improved handling of syntax errors
- Additional commits viewable in [compare view](https://github.com/squizlabs/PHP_CodeSniffer/compare/3.4.0...3.4.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.
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.2.
Release notes
*Sourced from [squizlabs/php_codesniffer's releases](https://github.com/squizlabs/PHP_CodeSniffer/releases).* > ## 3.4.2 > * `Squiz.Arrays.ArrayDeclaration` now has improved handling of syntax errors > * Fixed an issue where the PCRE JIT on PHP 7.3 caused PHPCS to die when using the parallel option > * PHPCS now disables the PCRE JIT before running > * Fixed bug [#2368](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2368) : MySource.PHP.AjaxNullComparison throws error when first function has no doc comment > * Fixed bug [#2414](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2414) : Indention false positive in switch/case/if combination > * Fixed bug [#2423](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2423) : Squiz.Formatting.OperatorBracket.MissingBrackets error with static > * Fixed bug [#2450](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2450) : Indentation false positive when closure containing nested IF conditions used as function argument > * Fixed bug [#2452](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2452) : LowercasePHPFunctions sniff failing on "new \File()" > * Fixed bug [#2453](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2453) : Squiz.CSS.SemicolonSpacingSniff false positive when style name proceeded by an asterisk > * Thanks to Juliette Reinders Folmer for the patch > * Fixed bug [#2464](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2464) : Fixer conflict between Generic.WhiteSpace.ScopeIndent and Squiz.WhiteSpace.ScopeClosingBrace when class indented 1 space > * Fixed bug [#2465](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2465) : Excluding a sniff by path is not working > * Fixed bug [#2467](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2467) : PHP open/close tags inside CSS files are replaced with internal PHPCS token strings when auto fixing > > ## 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 > ... (truncated)Commits
- [`b8a7362`](https://github.com/squizlabs/PHP_CodeSniffer/commit/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8) Prepare for 3.4.2 release - [`ac3ec98`](https://github.com/squizlabs/PHP_CodeSniffer/commit/ac3ec982f8cce86f0c372a46cb03580bdd47668e) Merge branch 'patch-1' of https://github.com/donatj/PHP_CodeSniffer - [`c09a4e1`](https://github.com/squizlabs/PHP_CodeSniffer/commit/c09a4e1a2f3f6fe4a628e72b5e61ad35b309ed02) Fixed an issue where the PCRE JIT on PHP 7.3 caused PHPCS to die when using t... - [`c253459`](https://github.com/squizlabs/PHP_CodeSniffer/commit/c253459e3341244486d5bcce65105e433df3f3a5) PHP_CodeSniffer\Exceptions\RuntimeException extends \RuntimeException - [`dd3f6e0`](https://github.com/squizlabs/PHP_CodeSniffer/commit/dd3f6e0813e0c67a2a30c53abc724377cb6db2f2) Changelog + unit tests for [#2368](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2368) - [`89888ba`](https://github.com/squizlabs/PHP_CodeSniffer/commit/89888ba2d19488bcff0934bf8b69645727a9c8fd) Merge branch 'fix-ajaxnullcomparison-sniff' of https://github.com/MariusLab/P... - [`ce2aa58`](https://github.com/squizlabs/PHP_CodeSniffer/commit/ce2aa584826358f3d3078daf0c5b262c813f71e7) Fixed bug [#2423](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2423) : Squiz.Formatting.OperatorBracket.MissingBrackets error with... - [`fd2158b`](https://github.com/squizlabs/PHP_CodeSniffer/commit/fd2158b71fc1492ed49ef3e0058ccce7331b5a8d) Remove PHP tags so pear validate doesn't complain - [`c69d63f`](https://github.com/squizlabs/PHP_CodeSniffer/commit/c69d63fb869e7659a6043ce8a980fd7364585cd0) Fixed bug [#2464](https://github-redirect.dependabot.com/squizlabs/PHP_CodeSniffer/issues/2464) : Fixer conflict between Generic.WhiteSpace.ScopeIndent and S... - [`7e1a4f6`](https://github.com/squizlabs/PHP_CodeSniffer/commit/7e1a4f68862ed2d74feee98aaa768ea18ef5e573) Squiz.Arrays.ArrayDeclaration now has improved handling of syntax errors - Additional commits viewable in [compare view](https://github.com/squizlabs/PHP_CodeSniffer/compare/3.4.0...3.4.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
.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.