Update dependency squizlabs/php_codesniffer to v4 #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot]
.This notice will be removed on 2025-10-07.
This PR contains the following updates:
3.6.1
->4.0.0
Release Notes
PHPCSStandards/PHP_CodeSniffer (squizlabs/php_codesniffer)
v4.0.0
: - 2025-09-16Compare Source
This release contains breaking changes.
Upgrade guides for both ruleset maintainers/end-users, as well as for sniff developers and integrators, have been published to the Wiki.
You are strongly encouraged to read the upgrade guide applicable to your situation before upgrading.
This release includes all improvements and bugfixes from PHP_CodeSniffer 4.0.0-beta1, 4.0.0-RC1, 3.13.3 and 3.13.4.
Changed
exit
/die
/true
/false
/null
will be tokenized as the keyword token and the token'content'
will include the leading backslash. #1201^8.4.0 || ^9.3.4 || ^10.5.32 || 11.3.3 - 11.5.28 || ^11.5.31
. #1247Fixed
phpcbf
on code provided via STDIN.// phpcs:set
for inline array properties did not handle a single item array with the valuetrue
,false
ornull
correctly.phpcbf
in parallel mode.Other
master
branch has been renamed to3.x
and the default branch has changed to the4.x
branch.Statistics
Closed: 5 issues
Merged: 35 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.13.4
: - 2025-09-05Compare Source
Fixed
Statistics
Closed: 0 issues
Merged: 3 pull requests
If you like to stay informed about releases and more, follow @phpcs on Mastodon or @PHP_CodeSniffer on X.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.13.3
: - 2025-09-04Compare Source
Added
abstract
properties. #1183File::getMemberProperties()
method now also supportsabstract
properties through a newis_abstract
array index in the return value. #1184abstract
properties:exit
/die
is used as a fully qualified "function call", it will now be tokenized asT_NS_SEPARATOR
+T_EXIT
.Changed
true
/false
/null
will now be tokenized asT_NS_SEPARATOR
+T_TRUE
/T_FALSE
/T_NULL
. #1201T_NS_SEPARATOR
+T_STRING
.WrongOpener*
error code is now auto-fixable if the identified "wrong opener" is a semi-colon. #1161AbstractAfterVisibility
error code.Fixed
--parallel
option fails if PHP_CodeSniffer is invoked via bash and the invokation creates a non-PHPCS-managed process.--parallel
scanning was enabled.Other
Contributions welcome !
New Contributors
The PHP_CodeSniffer project is happy to welcome the following new contributors:
@benno5020, @NanoSector
Statistics
Closed: 11 issues
Merged: 40 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.13.2
: - 2025-06-18Compare Source
Changed
Fixed
SpacingAfterSetVis[i]bility
.Statistics
Closed: 0 issues
Merged: 6 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.13.1
: - 2025-06-13Compare Source
Added
set_scope
array index in the return value. #1116set_visibility
andset_visibility_token
array indexes in the return value. #1116Changed
AvizKeywordOrder
error code.SpacingAfterSetVisibility
error code.AsymReadMissing
. #1122Other
Older XSD files can be referenced via permalinks based on their minor:
https://schema.phpcodesniffer.com/#.#/phpcs.xsd
.D91D869
.Statistics
Closed: 3 issues
Merged: 24 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.13.0
: - 2025-05-11Compare Source
Added
final
properties to the following sniffs:Changed
goto
language construct keyword. #917final
modifier keyword is placed before a visibility keyword. #950FinalAfterVisibility
error code.--reports
CLI flag. #1078Deprecated
PHP_CodeSniffer\Sniffs\Sniff
interface. #891-q
(=quiet) CLI flag.Fixed
Other
Calling all testers!
The first beta release for PHP_CodeSniffer 4.0 has been tagged. Please help by testing the beta release and reporting any issues you run into.
Upgrade guides for both ruleset maintainers/end-users, as well as for sniff developers and integrators, have been published to the Wiki to help smooth the transition.
Statistics
Closed: 3 issues
Merged: 29 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.12.2
: - 2025-04-13Compare Source
Added
final
properties to the following sniffs:Changed
short_open_tag
setting.Fixed
@param
tags.final
classes.Diff
+ theCode
reports are requested and caching is on.Other
Read the open invitation (#924) for all the details.
New Contributors
The PHP_CodeSniffer project is happy to welcome the following new contributors:
@devfrey
Statistics
Closed: 1 issues
Merged: 36 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.12.1
: - 2025-04-04Compare Source
Added
Changed
Deprecated
Generic.Functions.CallTimePassByReference
sniff. See #921.Fixed
InvalidArgumentException
s when displaying verbose information.?
in nullable types for readonly properties.goto
was not recognized as a terminating statement for a case/default in a switch control structure.Other
Read the open invitation (#924) for all the details.
New Contributors
The PHP_CodeSniffer project is happy to welcome the following new contributors:
@costdev
Statistics
Closed: 0 issues
Merged: 24 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.12.0
: - 2025-03-18Compare Source
Added
is_final
array index in the return value. #834Changed
-h
(Help) option now contains a more extensive list of "config" options which can be set. #809--sniffs
or--exclude
command line arguments. #344--generator
command line argument. #709, #771title
attribute is missing, the documentation generation will now fall back to the sniff name as the title. #820SpacingBeforePropertyModifier
orNoSpaceBeforePropertyModifier
error codes. #792SpacingBeforeHint
orNoSpaceBeforeHint
error code, which was misleading.final
andabstract
modifier keywords. #604Internal.PropertyDoesNotExist
error code.Deprecated
All deprecation are slated for removal in PHP_CodeSniffer 4.0.
Sniff
interface. See #694.PHP_CodeSniffer\Generators\Text::printTitle()
in favour ofPHP_CodeSniffer\Generators\Text::getFormattedTitle()
PHP_CodeSniffer\Generators\Text::printTextBlock()
in favour ofPHP_CodeSniffer\Generators\Text::getFormattedTextBlock()
PHP_CodeSniffer\Generators\Text::printCodeComparisonBlock()
in favour ofPHP_CodeSniffer\Generators\Text::getFormattedCodeComparisonBlock()
PHP_CodeSniffer\Generators\Markdown::printHeader()
in favour ofPHP_CodeSniffer\Generators\Markdown::getFormattedHeader()
PHP_CodeSniffer\Generators\Markdown::printFooter()
in favour ofPHP_CodeSniffer\Generators\Markdown::getFormattedFooter()
PHP_CodeSniffer\Generators\Markdown::printTextBlock()
in favour ofPHP_CodeSniffer\Generators\Markdown::getFormattedTextBlock()
PHP_CodeSniffer\Generators\Markdown::printCodeComparisonBlock()
in favour ofPHP_CodeSniffer\Generators\Markdown::getFormattedCodeComparisonBlock()
PHP_CodeSniffer\Generators\HTML::printHeader()
in favour ofPHP_CodeSniffer\Generators\HTML::getFormattedHeader()
PHP_CodeSniffer\Generators\HTML::printToc()
in favour ofPHP_CodeSniffer\Generators\HTML::getFormattedToc()
PHP_CodeSniffer\Generators\HTML::printFooter()
in favour ofPHP_CodeSniffer\Generators\HTML::getFormattedFooter()
PHP_CodeSniffer\Generators\HTML::printTextBlock()
in favour ofPHP_CodeSniffer\Generators\HTML::getFormattedTextBlock()
PHP_CodeSniffer\Generators\HTML::printCodeComparisonBlock()
in favour ofPHP_CodeSniffer\Generators\HTML::getFormattedCodeComparisonBlock()
Fixed
readonly
properties.[0 => '']
.Other
New Contributors
The PHP_CodeSniffer project is happy to welcome the following new contributors:
@asispts, @braindawg, @DanielEScherzer, @peterwilsoncc
Statistics
Closed: 5 issues
Merged: 74 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.11.3
: - 2025-01-23Compare Source
Changed
SpaceBeforeComma
error. #783Fixed
equalsSpacing
was set to0
.equalsSpacing
was set to1
.Statistics
Closed: 0 issues
Merged: 14 pull requests
If you like to stay informed about releases and more, follow @phpcs on Mastodon or @PHP_CodeSniffer on X.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!
v3.11.2
: - 2024-12-11Compare Source
Changed
<standard>
blocks. #723<standard>
blocks. #737Configuration
📅 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 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.
This PR was generated by Mend Renovate. View the repository job log.