Update dependency squizlabs/php_codesniffer to v3.11.0 #333

Merged
renovate_bot merged 1 commit from renovate/squizlabs-php_codesniffer-3.x-lockfile into master 2024-11-12 22:37:51 +00:00
renovate_bot commented 2024-11-12 10:12:57 +00:00 (Migrated from jonasled.dev)

This MR contains the following updates:

Package Type Update Change
squizlabs/php_codesniffer require-dev minor 3.10.3 -> 3.11.0

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

PHPCSStandards/PHP_CodeSniffer (squizlabs/php_codesniffer)

v3.11.0

Compare Source

Added
  • Runtime support for PHP 8.4. All known PHP 8.4 deprecation notices have been fixed.
    • Syntax support for new PHP 8.4 features will follow in a future release.
    • If you find any PHP 8.4 deprecation notices which were missed, please report them.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches.
  • Tokenizer support for PHP 8.3 "yield from" expressions with a comment between the keywords. #​529, #​647
    • Sniffs explicitly handling T_YIELD_FROM tokens may need updating. The MR description contains example code for use by sniff developers.
    • Additionally, the following sniff has been updated to support "yield from" expressions with comments:
      • Generic.WhiteSpace.LanguageConstructSpacing
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • New Generic.WhiteSpace.HereNowdocIdentifierSpacing sniff. #​586, #​637
    • Forbid whitespace between the <<< and the identifier string in heredoc/nowdoc start tokens.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • New Generic.Strings.UnnecessaryHeredoc sniff. #​633
    • Warns about heredocs without interpolation or expressions in the body text and can auto-fix these to nowdocs.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Documentation for the following sniffs:
    • Generic.Arrays.ArrayIndent
    • Squiz.PHP.Heredoc
    • Thanks to [Rodrigo Primo][@​rodrigoprimo] and [Juliette Reinders Folmer][@​jrfnl] for the patches.
Changed
  • The Common::getSniffCode() method will now throw an InvalidArgumentException exception if an invalid $sniffClass is passed. #​524, #​625
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Documentation generated using the --generator=... feature will now always be presented in natural order based on the sniff name(s). #​668
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Minor improvements to the display of runtime information. #​658
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Squiz.Commenting.PostStatementComment: trailing annotations in PHP files will now be reported under a separate, non-auto-fixable error code AnnotationFound. #​560, #​627
    • This prevents (tooling related) annotations from taking on a different meaning when moved by the fixer.
    • The separate error code also allows for selectively excluding it to prevent the sniff from triggering on trailing annotations, while still forbidding other trailing comments.
    • Thanks to [Rodrigo Primo][@​rodrigoprimo] for the patch.
  • Squiz.ControlStructures.ForEachLoopDeclaration: the SpacingAfterOpen error code has been replaced by the SpaceAfterOpen error code. The latter is a pre-existing code. The former appears to have been a typo. #​582
  • The following sniff(s) have received efficiency improvements:
    • Generic.Classes.DuplicateClassName
    • Generic.NamingConventions.ConstructorName
    • Thanks to [Rodrigo Primo][@​rodrigoprimo] and [Juliette Reinders Folmer][@​jrfnl] for the patches.
  • Various housekeeping, including improvements to the tests and documentation.
Fixed
  • Fixed bug #​3808 : Generic.WhiteSpace.ScopeIndent would throw false positive for tab indented multi-token yield from expression.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​630 : The tokenizer could inadvertently transform "normal" parentheses to DNF parentheses, when a function call was preceded by a switch-case / alternative syntax control structure colon.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​645 : On PHP 5.4, if yield was used as the declaration name for a function declared to return by reference, the function name would incorrectly be tokenized as T_YIELD instead of T_STRING.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​647 : Tokenizer not applying tab replacement in single token "yield from" keywords.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​647 : Generic.WhiteSpace.DisallowSpaceIndent did not flag space indentation in multi-line yield from.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​647 : Generic.WhiteSpace.DisallowTabIndent did not flag tabs inside yield from.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​652 : Generic.NamingConventions.ConstructorName: false positives for PHP-4 style calls to PHP-4 style parent constructor when a method with the same name as the parent class was called on another class.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​652 : Generic.NamingConventions.ConstructorName: false negatives for PHP-4 style calls to parent constructor for function calls with whitespace and comments in unconventional places.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​653 : Generic.Classes.DuplicateClassName : the sniff did not skip namespace keywords used as operators, which could lead to false positives.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​653 : Generic.Classes.DuplicateClassName : sniff going into an infinite loop during live coding.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​653 : Generic.Classes.DuplicateClassName : false positives/negatives when a namespace declaration contained whitespace or comments in unconventional places.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Fixed bug #​653 : Generic.Classes.DuplicateClassName : namespace for a file going in/out of PHP was not remembered/applied correctly.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

This MR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) | require-dev | minor | `3.10.3` -> `3.11.0` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>PHPCSStandards/PHP_CodeSniffer (squizlabs/php_codesniffer)</summary> ### [`v3.11.0`](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/CHANGELOG.md#3110---2024-11-12) [Compare Source](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.10.3...3.11.0) ##### Added - Runtime support for PHP 8.4. All known PHP 8.4 deprecation notices have been fixed. - Syntax support for new PHP 8.4 features will follow in a future release. - If you find any PHP 8.4 deprecation notices which were missed, please report them. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patches. - Tokenizer support for PHP 8.3 "yield from" expressions with a comment between the keywords. [#&#8203;529], [#&#8203;647] - Sniffs explicitly handling T_YIELD_FROM tokens may need updating. The MR description contains example code for use by sniff developers. - Additionally, the following sniff has been updated to support "yield from" expressions with comments: - Generic.WhiteSpace.LanguageConstructSpacing - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch. - New `Generic.WhiteSpace.HereNowdocIdentifierSpacing` sniff. [#&#8203;586], [#&#8203;637] - Forbid whitespace between the `<<<` and the identifier string in heredoc/nowdoc start tokens. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch. - New `Generic.Strings.UnnecessaryHeredoc` sniff. [#&#8203;633] - Warns about heredocs without interpolation or expressions in the body text and can auto-fix these to nowdocs. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch. - Documentation for the following sniffs: - Generic.Arrays.ArrayIndent - Squiz.PHP.Heredoc - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://github.com/rodrigoprimo)] and \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patches. ##### Changed - The Common::getSniffCode() method will now throw an InvalidArgumentException exception if an invalid `$sniffClass` is passed. [#&#8203;524], [#&#8203;625] - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch. - Documentation generated using the `--generator=...` feature will now always be presented in natural order based on the sniff name(s). [#&#8203;668] - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch. - Minor improvements to the display of runtime information. [#&#8203;658] - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch. - Squiz.Commenting.PostStatementComment: trailing annotations in PHP files will now be reported under a separate, non-auto-fixable error code `AnnotationFound`. [#&#8203;560], [#&#8203;627] - This prevents (tooling related) annotations from taking on a different meaning when moved by the fixer. - The separate error code also allows for selectively excluding it to prevent the sniff from triggering on trailing annotations, while still forbidding other trailing comments. - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://github.com/rodrigoprimo)] for the patch. - Squiz.ControlStructures.ForEachLoopDeclaration: the `SpacingAfterOpen` error code has been replaced by the `SpaceAfterOpen` error code. The latter is a pre-existing code. The former appears to have been a typo. [#&#8203;582] - Thanks to \[Dan Wallis]\[[@&#8203;fredden](https://github.com/fredden)] for the patch. - The following sniff(s) have received efficiency improvements: - Generic.Classes.DuplicateClassName - Generic.NamingConventions.ConstructorName - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://github.com/rodrigoprimo)] and \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patches. - Various housekeeping, including improvements to the tests and documentation. - Thanks to \[Rodrigo Primo]\[[@&#8203;rodrigoprimo](https://github.com/rodrigoprimo)] and \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for their contributions. ##### Fixed - Fixed bug [#&#8203;3808][sq-3808] : Generic.WhiteSpace.ScopeIndent would throw false positive for tab indented multi-token yield from expression. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;630] : The tokenizer could inadvertently transform "normal" parentheses to DNF parentheses, when a function call was preceded by a switch-case / alternative syntax control structure colon. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;645] : On PHP 5.4, if yield was used as the declaration name for a function declared to return by reference, the function name would incorrectly be tokenized as T_YIELD instead of T_STRING. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;647] : Tokenizer not applying tab replacement in single token "yield from" keywords. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;647] : Generic.WhiteSpace.DisallowSpaceIndent did not flag space indentation in multi-line yield from. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;647] : Generic.WhiteSpace.DisallowTabIndent did not flag tabs inside yield from. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;652] : Generic.NamingConventions.ConstructorName: false positives for PHP-4 style calls to PHP-4 style parent constructor when a method with the same name as the parent class was called on another class. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;652] : Generic.NamingConventions.ConstructorName: false negatives for PHP-4 style calls to parent constructor for function calls with whitespace and comments in unconventional places. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;653] : Generic.Classes.DuplicateClassName : the sniff did not skip namespace keywords used as operators, which could lead to false positives. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;653] : Generic.Classes.DuplicateClassName : sniff going into an infinite loop during live coding. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;653] : Generic.Classes.DuplicateClassName : false positives/negatives when a namespace declaration contained whitespace or comments in unconventional places. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch - Fixed bug [#&#8203;653] : Generic.Classes.DuplicateClassName : namespace for a file going in/out of PHP was not remembered/applied correctly. - Thanks to \[Juliette Reinders Folmer]\[[@&#8203;jrfnl](https://github.com/jrfnl)] for the patch [sq-3808]: https://github.com/squizlabs/PHP_CodeSniffer/issues/3808 [#&#8203;524]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/524 [#&#8203;529]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/529 [#&#8203;560]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/560 [#&#8203;582]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/582 [#&#8203;586]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/586 [#&#8203;625]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/625 [#&#8203;627]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/627 [#&#8203;630]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/630 [#&#8203;633]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/633 [#&#8203;637]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/637 [#&#8203;645]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/645 [#&#8203;647]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/647 [#&#8203;652]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/652 [#&#8203;653]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/653 [#&#8203;658]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/658 [#&#8203;668]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/668 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xNDIuNCIsInVwZGF0ZWRJblZlciI6IjM4LjE0Mi40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
renovate_bot commented 2024-11-12 10:13:41 +00:00 (Migrated from jonasled.dev)

mentioned in issue #2

mentioned in issue #2
jonasled (Migrated from jonasled.dev) merged commit 3d0161eb43 into master 2024-11-12 22:37:53 +00:00
jonasled commented 2024-11-12 22:37:54 +00:00 (Migrated from jonasled.dev)

mentioned in commit 3d0161eb43

mentioned in commit 3d0161eb43bc5d46282a6a3c9f9a49421c8033c0
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jonasled/webresetter-frontend!333
No description provided.