CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 08:09:40 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"93a02e87796abd88ae7406d84114a14b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=wfldDutVPc%2BSptjHs1P4OHK6HbawUXxMikBNnSZ8Ex05OMwtzxcSE9lssDvmLZ3x7AU0LV3DHr59ucukJgRcTV1kN56a15gHnzGZ9nB8KK3ZowNNkCeVe2w2hR5N51DO7%2B5Z6%2BV4zkryfGnBhDbKNaZqbvm03b%2FfoeoRJVelunJTJ0c2zy7klH8CA5Z8%2FSl%2Fpe%2FIirBnaBNZfzBogI68LIaV2RxyWcsB89hYbRmFDp8yEYR3%2F57sGuA%2B47qK0WtbxZT97ivs6hjAj4N3hz6fxw%3D%3D--tiRSokKtZhapOM%2B6--VsKVmYgot6Y%2B9KARrI%2BFCQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2312712.1753258179; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 08:09:39 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 08:09:39 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DF40:3CF5A2:6DF15C:88E3FB:688098C3
Releases · PHPCSStandards/PHPCSExtra · GitHub
14 Jun 07:47
Loading
08 Jun 20:05
Loading
20 Apr 23:42
Loading
08 Dec 16:51
Loading
02 Dec 14:32
Loading
20 Sep 22:10
Loading
26 Aug 04:50
Loading
19 Jul 19:44
Loading
17 Jun 23:02
Loading
28 Mar 17:51
Loading
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Releases: PHPCSStandards/PHPCSExtra
Releases · PHPCSStandards/PHPCSExtra
1.4.0 - 2025-06-14
fa4b8d0
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare
Added
- All sniffs: compatibility with the new PHP_CodeSniffer
4.x
branch in anticipation of the PHP_CodeSniffer 4.0 release. #367
PHPCSExtra should now be fully compatible with PHP_CodeSniffer 4.0. If you still find an issue, please report it.
Changed
Other
- Composer: The minimum
PHP_CodeSniffer
requirement has been updated to^3.13.0
(was^3.12.1
). #361 - Composer: The minimum
PHPCSUtils
requirement has been updated to^1.1.0
(was^1.0.12
). #361 - Various housekeeping.
Deprecated
Universal
Universal.WhiteSpace.PrecisionAlignment
: support for scanning JS/CSS files via this sniff is now deprecated. #367
Fixed
Universal
Universal.Arrays.DuplicateArrayKey
: false positives for numeric strings with leading/trailing underscores. Fixed via the update to PHPCSUtils 1.1.0. #363Universal.Arrays.DuplicateArrayKey
: false negatives for fully qualifiedtrue
/false
/null
arrays keys. Fixed via the update to PHPCSUtils 1.1.0. #363Universal.WhiteSpace.CommaSpacing
: wrong errorcode for comma's in closure use statements after the update to PHPCSUtils 1.1.0. #362
Assets 2
1.3.1 - 2025-06-08
8cb1a93
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare
Changed
Other
- Composer: The minimum
PHPCSUtils
requirement has been updated to^1.0.12
(was^1.0.9
). #346 - Various housekeeping.
Fixed
Universal
Universal.UseStatements.DisallowMixedGroupUse
: the fixer could get confused when the "base" name for the group name contained a leading backslash, leading to parse errors in the fixed code. #350
Assets 2
1.3.0 - 2025-04-21
46d08eb
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare
Added
Universal
- 🔧 📚 New
Universal.PHP.NoFQNTrueFalseNull
sniff to forbid usingtrue
,false
andnull
as fully qualified constants. Thanks @rodrigoprimo for reviewing. #327 Universal.Operators.TypeSeparatorSpacing
: support for checking the spacing around the parentheses used in PHP 8.2+ DNF types. #329
Changed
Universal
- The
Universal.WhiteSpace.DisallowInlineTabs
sniff will now also check for inline tabs in heredoc/nowdoc openers and between theyield
andfrom
keywords. #320
Other
Assets 2
1.2.1 - 2023-12-08
11d387c
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
Changed
Other
- Composer: The minimum
PHP_CodeSniffer
requirement has been updated to^3.8.0
(was^3.7.2
). #298 - Composer: The minimum
PHPCSUtils
requirement has been updated to^1.0.9
(was^1.0.8
). #298
Please ensure you run composer update phpcsstandards/phpcsextra --with-dependencies
to benefit from this.
Assets 2
1.2.0 - 2023-12-02
78b2cae
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
Added
Universal
- 🔧 📚 New
Universal.CodeAnalysis.NoDoubleNegative
sniff to detect double negatives (!!) and advise to use a boolean cast instead. Thanks @diedexx for reviewing. #277 - 🔧 📚 New
Universal.Operators.ConcatPosition
sniff to enforce that the concatenation operator for multi-line concatenations is in a preferred position, either always at the start of the next line or always at the end of the previous line. #294 - 🔧 📊 📚 New
Universal.PHP.LowercasePHPTag
sniff to enforce that the "PHP" in a PHP open tag is lowercase. Thanks @fredden for reviewing. #276
Changed
NormalizedArrays
NormalizedArrays.Arrays.CommaAfterLast
: the sniff now has two extra error codes to distinguish between multi-line arrays with the last array item on the same line as the array closer vs the last array item being on a line before the array closer. Thanks @stronk7 for suggesting and patching this. #283, #284
These new error codes allow for selectively excluding that specific situation from triggering the sniff.
The new error codes areFoundMultiLineCloserSameLine
(formultiLine="forbid"
) andMissingMultiLineCloserSameLine
(formultiLine="enforce"
).
The pre-existingFoundMultiLine
andFoundSingleLine
error codes continue to be used for multi-line arrays with the last array item on a different line than the array closer.
Other
- Various housekeeping.
Assets 2
1.1.2 - 2023-09-21
746c319
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
Assets 2
1.1.1 - 2023-08-26
98bcdba
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
Changed
Modernize
Modernize.FunctionCalls.Dirname
: the sniff will now respect a potentially setphp_version
configuration option and only report on modernizations which are possible on the configuredphp_version
. #261
If thephp_version
is not set, the sniff will continue to report on all modernization options.
Other
- Various documentation improvements. Props in part to @szepeviktor.
- Improved defensive coding in select places.
- Various housekeeping.
Assets 2
1.1.0 - 2023-07-19
61a9be9
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
Added
Universal
- 🔧 📚 New
Universal.CodeAnalysis.NoEchoSprintf
sniff to detect use of the inefficientecho [v]sprintf(...);
combi and recommends using[v]printf()
instead. #242 - 📊 📚 New
Universal.FunctionDeclarations.NoLongClosures
sniff to detect "long" closures and recommend using a named function instead. #240
The sniff offers the following properties to influence its behaviour:recommendedLines
(defaults to5
),maxLines
(defaults to8
),ignoreCommentLines
(defaults totrue
) andignoreEmptyLines
(defaults totrue
). - 🔧 📊 📚 New
Universal.FunctionDeclarations.RequireFinalMethodsInTraits
sniff to enforce non-private, non-abstract methods in traits to be declared asfinal
. #243, #245
There is a separateNonFinalMagicMethodFound
error code for magic methods to allow those to be excluded from the check. - 🔧 📊 📚 New
Universal.UseStatements.DisallowMixedGroupUse
sniff to disallow group use statements which import a combination of namespace/OO construct, functions and/or constants in one statement. #241, #246
Note: the fixer will use a semi-standardized format for group use statements. If there are more specific requirements for the formatting of group use statements, the ruleset configurator should ensure that additional sniffs are included in the ruleset to enforce the required format. - 🔧 📊 📚 New
Universal.UseStatements.KeywordSpacing
sniff to enforce the use of a single space after theuse
,function
,const
keywords and both before and after theas
keyword in importuse
statements. #247
The sniff has modular error codes to allow for disabling individual checks. - 🔧 📚 New
Universal.UseStatements.NoUselessAliases
sniff to detect useless aliases (aliasing something to its original name) in import use statements. #244
Note: as OO and function names in PHP are case-insensitive, aliasing to the same name, using a different case is also considered useless. - 🔧 📊 📚 New
Universal.WhiteSpace.CommaSpacing
sniff to enforce that there is no space before a comma and exactly one space, or a new line, after a comma. #254
Additionally, the sniff also enforces that the comma should follow the code and not be placed after a trailing comment.
The sniff has modular error codes to allow for disabling individual checks and checks in certain contexts.
The sniff will respect a potentially setphp_version
configuration option when deciding how to handle the spacing after a heredoc/nowdoc closer.
Changed
Universal
- Minor performance improvements for the
Universal.Arrays.DuplicateArrayKey
and theUniversal.CodeAnalysis.ConstructorDestructorReturn
sniffs. #251, #252
Other
Assets 2
1.0.4 - 2023-06-18
029af41
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
Assets 2
1.0.3 - 2023-03-28
7029c05
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
Assets 2
2 people reacted
Previous Next
You can’t perform that action at this time.