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
- 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 toJuliette 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 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 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 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 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 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
- 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.04a9addc Changelog for the 3.9.0 release4bbc820 Merge pull request#340 from fredden/missing-fixed-file/Squiz.Commenting.Clos...66e87a1 Avoid adding extra newlines when adding a comment392b2b5 Add auto-generated ".fixed" file3e582fe Merge pull request#339 from PHPCSStandards/feature/various-minor-cs-cleanup814896b Merge pull request#338 from PHPCSStandards/feature/various-docs-tweaks479b4dc CS: various minor fixes8e92de6 Changelog: various tweaks21219d1 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 onsquizlabs/php_codesniffer to permit the latest version.
Release notes
Sourced fromsquizlabs/php_codesniffer's releases.
... (truncated)
Changelog
Sourced fromsquizlabs/php_codesniffer's changelog.
... (truncated)
Commits
d63cee4Merge pull request#341 from PHPCSStandards/feature/changelog-3.9.04a9addcChangelog for the 3.9.0 release4bbc820Merge pull request#340 from fredden/missing-fixed-file/Squiz.Commenting.Clos...66e87a1Avoid adding extra newlines when adding a comment392b2b5Add auto-generated ".fixed" file3e582feMerge pull request#339 from PHPCSStandards/feature/various-minor-cs-cleanup814896bMerge pull request#338 from PHPCSStandards/feature/various-docs-tweaks479b4dcCS: various minor fixes8e92de6Changelog: various tweaks21219d1README: minor tweakDependabot 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)