Skip to content

Commit a3a9582

Browse files
chore(deps): update dependency squizlabs/php_codesniffer to v3.13.4 (#734)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [squizlabs/php_codesniffer](https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer) | `3.13.2` -> `3.13.4` | [![age](https://developer.mend.io/api/mc/badges/age/packagist/squizlabs%2fphp_codesniffer/3.13.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/squizlabs%2fphp_codesniffer/3.13.2/3.13.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>PHPCSStandards/PHP_CodeSniffer (squizlabs/php_codesniffer)</summary> ### [`v3.13.4`](https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/CHANGELOG.md#3134---2025-09-05) [Compare Source](https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.3...3.13.4) ##### Fixed - Fixed bug [#&#8203;1213]: ability to run tests for external standards using the PHPCS native test framework was broken. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patch. - Fixed bug [#&#8203;1214]: PHP 8.5 "Using null as an array offset" deprecation notices. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patch. [#&#8203;1213]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1213 [#&#8203;1214]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1214 ### [`v3.13.3`](https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/CHANGELOG.md#3133---2025-09-04) [Compare Source](https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.2...3.13.3) ##### Added - Tokenizer support for PHP 8.4 dereferencing of new expressions without wrapping parentheses. [#&#8203;1160] - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patch. - Tokenizer support for PHP 8.4 `abstract` properties. [#&#8203;1183] - The `File::getMemberProperties()` method now also supports `abstract` properties through a new `is_abstract` array index in the return value. [#&#8203;1184] - Additionally, the following sniffs have been updated to support `abstract` properties: - Generic.PHP.LowerCaseConstant [#&#8203;1185] - Generic.PHP.UpperCaseConstant [#&#8203;1185] - PSR2.Classes.PropertyDeclaration [#&#8203;1188] - Squiz.Commenting.VariableComment [#&#8203;1186] - Squiz.WhiteSpace.MemberVarSpacing [#&#8203;1187] - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patches - Tokenizer support for the PHP 8.4 "exit as a function call" change. [#&#8203;1201] - When `exit`/`die` is used as a fully qualified "function call", it will now be tokenized as `T_NS_SEPARATOR` + `T_EXIT`. - Additionally, the following sniff has been updated to handle fully qualified exit/die correctly: - Squiz.PHP.NonExecutableCode - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patches ##### Changed - Tokenizer/PHP: fully qualified `true`/`false`/`null` will now be tokenized as `T_NS_SEPARATOR` + `T_TRUE`/`T_FALSE`/`T_NULL`. [#&#8203;1201] - Previously, these were tokenized as `T_NS_SEPARATOR` + `T_STRING`. - Additionally, the following sniffs have been updated to handle fully qualified true/false/null correctly: - Generic.CodeAnalysis.UnconditionalIfStatement - Generic.ControlStructures.DisallowYodaConditions - PEAR.Functions.ValidDefaultValue - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patches. - Generic.PHP.Syntax: the sniff is now able to scan input provided via STDIN on non-Windows OSes. [#&#8203;915] - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://redirect.github.com/rodrigoprimo)] for the patch. - PSR2.ControlStructures.SwitchDeclaration: the `WrongOpener*` error code is now auto-fixable if the identified "wrong opener" is a semi-colon. [#&#8203;1161] - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patch. - The PSR2.Classes.PropertyDeclaration will now check that the abstract modifier keyword is placed before a visibility keyword. [#&#8203;1188] - Errors will be reported via a new `AbstractAfterVisibility` error code. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patch. - Various housekeeping, including improvements to the tests and documentation. - Thanks to \[Bernhard Zwein]\[[@&#8203;benno5020](https://redirect.github.com/benno5020)], \[Rick Kerkhof]\[[@&#8203;NanoSector](https://redirect.github.com/NanoSector)], \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://redirect.github.com/rodrigoprimo)] and \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for their contributions. ##### Fixed - Fixed bug [#&#8203;1112] : `--parallel` option fails if PHP\_CodeSniffer is invoked via bash and the invokation creates a non-PHPCS-managed process. - Thanks to \[Rick Kerkhof]\[[@&#8203;NanoSector](https://redirect.github.com/NanoSector)] for the patch. - Fixed bug [#&#8203;1113] : fatal error when the specified "files to scan" would result in the same file being added multiple times to the queue. - This error only occured when `--parallel` scanning was enabled. - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://redirect.github.com/rodrigoprimo)] for the patch. - Fixed bug [#&#8203;1154] : PEAR.WhiteSpace.ObjectOperatorIndent: false positive when checking multiple chained method calls in a multidimensional array. - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://redirect.github.com/rodrigoprimo)] for the patch. - Fixed bug [#&#8203;1193] : edge case inconsistency in how empty string array keys for sniff properties are handled. - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://redirect.github.com/rodrigoprimo)] and \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patch. - Fixed bug [#&#8203;1197] : Squiz.Commenting.FunctionComment: return types containing a class name with underscores would be truncated leading to incorrect results. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for the patch. ##### Other - The [Wiki documentation] is now publicly editable. 🎉 - Update proposals can be submittted by opening a pull request in the [PHPCSStandards/PHP\_CodeSniffer-documentation][docs-repo] repository. Contributions welcome ! - Thanks to \[Anna Filina]\[[@&#8203;afilina](https://redirect.github.com/afilina)], \[Dan Wallis]\[[@&#8203;fredden](https://redirect.github.com/fredden)] and \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://redirect.github.com/jrfnl)] for their work on getting this set up. - The [Phar website] has had a facelift. [#&#8203;107] - Thanks to \[Bernhard Zwein]\[[@&#8203;benno5020](https://redirect.github.com/benno5020)] for making this happen! [Wiki documentation]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/wiki [docs-repo]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer-documentation [Phar website]: https://phars.phpcodesniffer.com/ [#&#8203;107]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/107 [#&#8203;915]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/915 [#&#8203;1112]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1112 [#&#8203;1113]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1113 [#&#8203;1154]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1154 [#&#8203;1160]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1160 [#&#8203;1161]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1161 [#&#8203;1183]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1183 [#&#8203;1184]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1184 [#&#8203;1185]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1185 [#&#8203;1186]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1186 [#&#8203;1187]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1187 [#&#8203;1188]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1188 [#&#8203;1193]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/pull/1193 [#&#8203;1197]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1197 [#&#8203;1201]: https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1201 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/line/line-bot-sdk-php). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJkZXBlbmRlbmN5IHVwZ3JhZGUiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 9f857cf commit a3a9582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require-dev": {
2323
"phpmd/phpmd": "2.15.0",
24-
"squizlabs/php_codesniffer": "3.13.2",
24+
"squizlabs/php_codesniffer": "3.13.4",
2525
"orchestra/testbench": "*",
2626
"phpstan/phpstan": "^2.0",
2727
"phpunit/phpunit": "^10.2"

0 commit comments

Comments
 (0)