Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@dependabot
Copy link
Contributor

@dependabotdependabotbot commented on behalf ofgithubMar 1, 2024

Updates the requirements onsquizlabs/php_codesniffer to permit the latest version.

Release notes

Sourced fromsquizlabs/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 toJuliette 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 toJuliette Reinders Folmer for the patches
  • NewPHP_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 toJuliette Reinders Folmer for the patch
  • NewGeneric.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence sniff.#197
    • Forbid mixing different binary boolean operators within a single expression without making precedence clear using parentheses
    • Thanks toTim 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 newShortOpenEchoNoSemicolon 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 toJuliette 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 toDenis Žoljom andRodrigo Primo for the patches

Changed

  • The Performance report can now also be used for aphpcbf run.#308
  • Sniff tests which extend the PHPCS nativeAbstractSniffUnitTest 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 toDan 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 fromsquizlabs/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
  • NewPHP_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
  • NewGeneric.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 newShortOpenEchoNoSemicolon 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 aphpcbf run.#308
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch
  • Sniff tests which extend the PHPCS nativeAbstractSniffUnitTest 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 incompare 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] <support@github.com>
@dependabotdependabotbot added dependenciesPull requests that update a dependency file phpPull requests that update Php code labelsMar 1, 2024
@coveralls
Copy link

Coverage Status

coverage: 99.427% (-0.002%) from 99.429%
when pullingacbdacf on dependabot/composer/squizlabs/php_codesniffer-tw-3.9
into7354f85 on 4.x.

@l0gicgatel0gicgate added this to the4.13.0 milestoneMar 3, 2024
@l0gicgatel0gicgate merged commit30a38b1 into4.xMar 3, 2024
@dependabotdependabotbot deleted the dependabot/composer/squizlabs/php_codesniffer-tw-3.9 branchMarch 3, 2024 21:21
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

dependenciesPull requests that update a dependency filephpPull requests that update Php code

Projects

None yet

Milestone

4.13.0

Development

Successfully merging this pull request may close these issues.

3 participants

@coveralls@l0gicgate

[8]ページ先頭

©2009-2025 Movatter.jp