Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update squizlabs/php_codesniffer requirement from ^3.8 to ^3.9 #348

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 1, 2024

Updates the requirements on squizlabs/php_codesniffer to permit the latest version.

Release notes

Sourced from squizlabs/php_codesniffer's releases.

3.9.0 - 2024-02-16

Added

  • Tokenizer support for PHP 8.3 typed class constants. #321
    • Additionally, the following sniffs have been updated to support typed class constants:
      • Generic.NamingConventions.UpperCaseConstantName #332
      • Generic.PHP.LowerCaseConstant #330
      • Generic.PHP.LowerCaseType #331
    • Thanks to Juliette Reinders Folmer for the patches
  • Tokenizer support for PHP 8.3 readonly anonymous classes. #309
    • Additionally, the following sniffs have been updated to support readonly anonymous classes:
      • PSR12.Classes.ClassInstantiation #324
    • Thanks to Juliette Reinders Folmer for the patches
  • New PHP_CodeSniffer\Sniffs\DeprecatedSniff interface to allow for marking a sniff as deprecated. #281
    • If a ruleset uses deprecated sniffs, deprecation notices will be shown to the end-user before the scan starts. When running in -q (quiet) mode, the deprecation notices will be hidden.
    • Deprecated sniffs will still run and using them will have no impact on the exit code for a scan.
    • In ruleset "explain"-mode (-e) an asterix * will show next to deprecated sniffs.
    • Sniff maintainers are advised to read through the PR description for full details on how to use this feature for their own (deprecated) sniffs.
    • Thanks to Juliette Reinders Folmer for the patch
  • New Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence sniff. #197
    • Forbid mixing different binary boolean operators within a single expression without making precedence clear using parentheses
    • Thanks to Tim Düsterhus for the contribution
  • Squiz.PHP.EmbeddedPhp : the sniff will now also examine the formatting of embedded PHP statements using short open echo tags. #27
    • Includes a new ShortOpenEchoNoSemicolon errorcode to allow for selectively ignoring missing semicolons in single line embedded PHP snippets within short open echo tags.
    • The other error codes are the same and do not distinguish between what type of open tag was used.
    • Thanks to Juliette Reinders Folmer for the patch
  • Documentation for the following sniffs:
    • Generic.WhiteSpace.IncrementDecrementSpacing
    • PSR12.ControlStructures.ControlStructureSpacing
    • PSR12.Files.ImportStatement
    • PSR12.Functions.ReturnTypeDeclaration
    • PSR12.Properties.ConstantVisibility
    • Thanks to Denis Žoljom and Rodrigo Primo for the patches

Changed

  • The Performance report can now also be used for a phpcbf run. #308
  • Sniff tests which extend the PHPCS native AbstractSniffUnitTest class will now show a (non-build-breaking) warning when test case files contain fixable errors/warnings, but there is no corresponding .fixed file available in the test suite to verify the fixes against. #336
    • The warning is only displayed on PHPUnit 7.3.0 and higher.
    • The warning will be elevated to a test failure in PHPCS 4.0.
    • Thanks to Dan Wallis for the patch
  • The following sniffs have received performance related improvements:
  • Various housekeeping, including improvements to the tests and documentation

Deprecated

  • Support for scanning JavaScript and CSS files. See #2448.
    • This also means that all sniffs which are only aimed at JavaScript or CSS files are now deprecated.

... (truncated)

Changelog

Sourced from squizlabs/php_codesniffer's changelog.

[3.9.0] - 2024-02-16

Added

  • Tokenizer support for PHP 8.3 typed class constants. #321
    • Additionally, the following sniffs have been updated to support typed class constants:
      • Generic.NamingConventions.UpperCaseConstantName #332
      • Generic.PHP.LowerCaseConstant #330
      • Generic.PHP.LowerCaseType #331
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches
  • Tokenizer support for PHP 8.3 readonly anonymous classes. #309
    • Additionally, the following sniffs have been updated to support readonly anonymous classes:
      • PSR12.Classes.ClassInstantiation #324
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patches
  • New PHP_CodeSniffer\Sniffs\DeprecatedSniff interface to allow for marking a sniff as deprecated. #281
    • If a ruleset uses deprecated sniffs, deprecation notices will be shown to the end-user before the scan starts. When running in -q (quiet) mode, the deprecation notices will be hidden.
    • Deprecated sniffs will still run and using them will have no impact on the exit code for a scan.
    • In ruleset "explain"-mode (-e) an asterix * will show next to deprecated sniffs.
    • Sniff maintainers are advised to read through the PR description for full details on how to use this feature for their own (deprecated) sniffs.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • New Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence sniff. #197
    • Forbid mixing different binary boolean operators within a single expression without making precedence clear using parentheses
    • Thanks to [Tim Düsterhus][@​TimWolla] for the contribution
  • Squiz.PHP.EmbeddedPhp : the sniff will now also examine the formatting of embedded PHP statements using short open echo tags. #27
    • Includes a new ShortOpenEchoNoSemicolon errorcode to allow for selectively ignoring missing semicolons in single line embedded PHP snippets within short open echo tags.
    • The other error codes are the same and do not distinguish between what type of open tag was used.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Documentation for the following sniffs:
    • Generic.WhiteSpace.IncrementDecrementSpacing
    • PSR12.ControlStructures.ControlStructureSpacing
    • PSR12.Files.ImportStatement
    • PSR12.Functions.ReturnTypeDeclaration
    • PSR12.Properties.ConstantVisibility
    • Thanks to [Denis Žoljom][@​dingo-d] and [Rodrigo Primo][@​rodrigoprimo] for the patches

Changed

  • The Performance report can now also be used for a phpcbf run. #308
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Sniff tests which extend the PHPCS native AbstractSniffUnitTest class will now show a (non-build-breaking) warning when test case files contain fixable errors/warnings, but there is no corresponding .fixed file available in the test suite to verify the fixes against. #336
    • The warning is only displayed on PHPUnit 7.3.0 and higher.
    • The warning will be elevated to a test failure in PHPCS 4.0.
    • Thanks to [Dan Wallis][@​fredden] for the patch
  • The following sniffs have received performance related improvements:
    • Squiz.PHP.EmbeddedPhp
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Various housekeeping, including improvements to the tests and documentation

Deprecated

  • Support for scanning JavaScript and CSS files. See #2448.

... (truncated)

Commits
  • d63cee4 Merge pull request #341 from PHPCSStandards/feature/changelog-3.9.0
  • 4a9addc Changelog for the 3.9.0 release
  • 4bbc820 Merge pull request #340 from fredden/missing-fixed-file/Squiz.Commenting.Clos...
  • 66e87a1 Avoid adding extra newlines when adding a comment
  • 392b2b5 Add auto-generated ".fixed" file
  • 3e582fe Merge pull request #339 from PHPCSStandards/feature/various-minor-cs-cleanup
  • 814896b Merge pull request #338 from PHPCSStandards/feature/various-docs-tweaks
  • 479b4dc CS: various minor fixes
  • 8e92de6 Changelog: various tweaks
  • 21219d1 README: minor tweak
  • Additional commits viewable in compare view

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 close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor 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)

Updates the requirements on [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) to permit the latest version.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](PHPCSStandards/PHP_CodeSniffer@3.8.0...3.9.0)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 1, 2024
@l0gicgate l0gicgate added this to the 4.6.0 milestone Mar 3, 2024
@l0gicgate l0gicgate merged commit 47a5fbd into main Mar 3, 2024
10 checks passed
@dependabot dependabot bot deleted the dependabot/composer/squizlabs/php_codesniffer-tw-3.9 branch March 3, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant