NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2865 most downloaded on Packagist
MediaWiki CodeSniffer Standards
Latest stable
v52.0.2
Last release 17 days ago
17 Nov 2026
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 53 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
73 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Handle files without extension when linting only changed files (Leszek Manicki)
Upgrade phpcsstandards/phpcsextra (1.5.0 => 1.5.1) (Anomie)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
DeprecatedGlobalVariablesSniff: Deprecate $wgLang (MGChecker)
DeprecatedGlobalVariablesSniff: Deprecate $wgLang (MGChecker)MockBoilderplateSniff: Detect use of self::returnCallback() (Umherirrender)UnusedUseStatementSniff: Add more annotations with types (Gergő Tisza)Upgrade squizlabs/php_codesniffer to 3.13.6 for security issue (James D. Forrester)
Drop support for PHP 8.2 (Alexander Vorwerk)
Drop support for composer/spdx-licenses 1.5.* (Alexander Vorwerk)
This project publishes no release notes. Between v51.0.1 and v51.0.2 there were 2 commits, 1 of them substantive:
This project publishes no release notes. Between v51.0.1 and v51.0.2 there were 2 commits, 1 of them substantive:
This project publishes no release notes. Between v51.0.0 and v51.0.1 there were 2 commits, 1 of them substantive:
This project publishes no release notes. Between v51.0.0 and v51.0.1 there were 2 commits, 1 of them substantive:
ForbiddenFunctionsSniff: Add utf8_encode and utf8_decode (Umherirrender)
ForbiddenFunctionsSniff: Add utf8_encode and utf8_decode (Umherirrender)NullableTypeSniff: Fix for union types (MGChecker)Upgrade phpcsstandards/phpcsextra (1.4.0 => 1.5.0) (Alexander Vorwerk)
build: Allow composer/spdx-licenses 1.6.0 (Alexander Vorwerk)
build: Don't list json as a required extension (Umherirrender)
build: Upgrade mediawiki/mediawiki-phan-config to 0.20.0 (Umherirrender)
build: Upgrade mediawiki-phan-config for PHP 8.5 support (James D. Forrester)
chore: Declare strict types on all php files (Umherirrender)
chore: Handle possible false/null in PHPUnitTestTrait (Umherirrender)
This project publishes no release notes. Between v50.0.0 and v50.0.1 there were 4 commits, 3 of them substantive:
This project publishes no release notes. Between v50.0.0 and v50.0.1 there were 4 commits, 3 of them substantive:
ForbiddenFunctionsSniff: Add more deprecated php internal functions (Umherirrender)
ForbiddenFunctionsSniff: Add more deprecated php internal functions (Umherirrender)FunctionCommentSniff: Use parameter type regex from phan (Daimona Eaytoy)ValidGlobalNameSniff: Treat deprecated or removed globals as invalid (Umherirrender)
UnusedUseStatementSniff: Ignore const when searching class names (Umherirrender)UnusedUseStatementSniff: add support for more annotations (Daimona Eaytoy)NonNormalizedAnnotation: Forbid @phan-template and @psalm-template in favour of @template (Daimona Eaytoy)FunctionCommentSniff: Parse callable parameter syntax (Daimona Eaytoy)AssignmentInReturnSniff: Ignore arrow functions (SomeRandomDeveloper)ValidGlobalNameSniff: Treat deprecated or removed globals as invalid (Umherirrender)ForbiddenFunctionsSniff: Add some deprecated php internal functions (Umherirrender)This project publishes no release notes. Between v48.0.1 and v48.0.2 there were 3 commits, 2 of them substantive:
This project publishes no release notes. Between v48.0.1 and v48.0.2 there were 3 commits, 2 of them substantive:
Nothing published for this version
Add ClassAnnotationsSniff to check for disallowed class annotations (Daimona Eaytoy)
ClassAnnotationsSniff to check for disallowed class annotations (Daimona Eaytoy)ClassDocumentationSniff to check doc comments for classes (Daimona Eaytoy)CommentBeforeClassSniff to check comments before classes (Daimona Eaytoy)NamespaceNameSniff to check naming conventions (Umherirrender)PropertyAnnotationsSniff to validate property annotations (Umherirrender)ClassAnnotationsSniff: Add @abstract, @example, @experimental, @extends, @final, @implements, @inherits, @private, and @phan-forbid-undeclared-magic-properties annotations (Umherirrender)EmptyTagSniff: Improve error message for union-typed properties (Umherirrender)FunctionAnnotationsSniff, PropertyAnnotationsSniff: Allow @no-named-arguments on functions and classes (Umherirrender)FunctionAnnotationsSniff, PropertyAnnotationsSniff: Allow the @template annotation (Daimona Eaytoy)FunctionAnnotationsSniff, PropertyAnnotationsSniff: Introduce CommentAnnotationsTrait to deduplicate some code for doc tags (Daimona Eaytoy)FunctionAnnotationsSniff: allow more phan suppressions (Daimona Eaytoy)FunctionCommentSniff, PropertyDocumentationSniff: Check doc comment formatting for functions and properties (Daimona Eaytoy)FunctionCommentSniff: Remove PHP71NullableDocOptionalArg error (Umherirrender)FunctionCommentSniff: Require documentation for parameterless function with return value (Umherirrender)PHPUnitTypeHintsSniff: Skip anon classes (Umherirrender)PHPunitAnnotationsSniff: Allow empty lines after comment (Daimona Eaytoy)PhpunitAnnotationsSniff: Allow @maximumDuration annotation (Umherirrender)PhpunitAnnotationsSniff: Forbid new @exclude*FromBackup annotations (Umherirrender)PropertyAnnotationsSniff: Detect union-typed properties (Umherirrender)PropertyDocumentationSniff: Check for readonly, final and anon classes (Umherirrender)PropertyDocumentationSniff: Detect union-typed properties (Umherirrender)RedundantVarNameSniff: Check for readonly and final (Umherirrender)RedundantVarNameSniff: Detect union-typed properties (Umherirrender)UnusedUseStatementSniff: Also report duplicate/conflicting uses (Bartosz Dziewoński)FinalPrivateSniff (Umherirrender)Generic.Functions.CallTimePassByReference (Daimona Eaytoy)NestedFunctionsSniff, replaced by upstream InnerFunctionsSniff (Daimona Eaytoy)PHPUnit sniffs: Avoid error on live coding about missing scope opener (Umherirrender)composer/semver (Reedy)EmptyLinesBetweenUseSniff: Allow to work with bracketed namespaces (Umherirrender)
EmptyLinesBetweenUseSniff: Allow to work with bracketed namespaces (Umherirrender)EmptyLinesBetweenUseSniff: Fix edge case with closures (Daimona Eaytoy)FunctionCommentSniff: Relax WrongStyle warning for property and function documentations (Umherirrender)PhpunitAnnotationsSniff: Enforce naming convention for @dataProvider (Umherirrender)SpaceyParenthesisSniff: Account for multiple spaces before parens (Daimona Eaytoy)SpaceyParenthesisSniff: Avoid wrong guesses of function calls (Daimona Eaytoy)SpaceyParenthesisSniff: Detect unnecessary whitespace in more cases (Daimona Eaytoy)AlphabeticArraySortSniff: Support sorting by symbol name, e.g. const keys (Muhammad Yasser Jazirahly)
AlphabeticArraySortSniff: Support sorting by symbol name, e.g. const keys (Muhammad Yasser Jazirahly)FunctionAnnotationsSniff: Allow use of @preCondition and @postCondition PHPUnit annotations (Umherirrender)NullableTypeSniff: Don't try to fix mixed to add null, it is already nullable (Taavi Väänänen)StaticClosureSniff: Work on fn() too (Reedy)Add MediaWiki.Usage.NullableType.ExplicitNullableTypes to check for implicitly nullable types in PHP 8.4 (Umherirrender)
MediaWiki.Usage.NullableType.ExplicitNullableTypes to check for implicitly nullable types in PHP 8.4 (Umherirrender)NullableTypeSniff: Also check closure and arrow functions (Umherirrender)Add Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence (Daimona Eaytoy)
Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence (Daimona Eaytoy)Universal.CodeAnalysis.NoDoubleNegative to replace DoubleNotOperatorSniff (Daimona Eaytoy)Universal.PHP.LowercasePHPTag (Daimona Eaytoy)ExtendClassUsageSniff: Add $wgInitialSessionId to non-config variables (Func)PhpunitAnnotationsSniff: Update also absolute class names in @covers (Umherirrender)SpaceBeforeClassBrace.BraceNotOnOwnLine: Handle multi-line anon class (Umherirrender)UnusedUseStatementSniff: Don't report unused classes in @phpstan… and @psalm-import-type (thiemowmde)UnusedUseStatementSniff: Replace hard-coded @…-import-type with more flexible config (thiemowmde)DoubleNotOperatorSniff, replaced by Universal.CodeAnalysis.NoDoubleNegative (Daimona Eaytoy)DeprecatedGlobalVariablesSniff: Add $wgCommandLineMode (Bartosz Dziewoński)
Universal.Constants.LowercaseClassResolutionKeyword: Enforce lowercase ::classUniversal.Constants.UppercaseMagicConstants: Enforce uppercase magic constantsUniversal.ControlStructures.DisallowAlternativeSyntax: Disallow alternative PHP syntaxUniversal.Lists.DisallowLongListSyntax: Disallow the long list()syntaxUniversal.Operators.TypeSeparatorSpacing: Forbid spaces in union and intersection typesUniversal.UseStatements.KeywordSpacing: Enforce a single space around keywords in use statementsUniversal.UseStatements.LowercaseFunctionConst: Enforce lowercase function and const in use statementsUniversal.UseStatements.NoUselessAliases: Forbids aliases in use statements where the alias is the same as the original nameUniversal.WhiteSpace.CommaSpacing: Enforce correct spacing around commasDeprecatedGlobalVariablesSniff: Add $wgCommandLineMode (Bartosz Dziewoński)FunctionCommentSniff & PropertyDocumentationSniff: Allow array shapes in PHPDoc comments (thiemowmde)FunctionCommentSniff: Require documentation of getters starting with "is", not only "get" (thiemowmde)FunctionCommentSniff: Actually check if a method returns anything (thiemowmde)FunctionAnnotationsSniff: Add @phan-type as an allowed annotation (Umherirrender)FunctionAnnotationsSniff: Add @phan-side-effect-free as an allowed annotation (Bartosz Dziewoński)LowerCamelFunctionsNameSniff: Ignore hook methods (DannyS712)PhpunitAnnotationsSniff: Enforce absolute class path for coverage annotations (Func)OneSpaceInlineArraySniff: Superseded by Universal.WhiteSpace.CommaSpacingShortListSyntaxSniff: Superseded by Universal.Lists.DisallowLongListSyntaxAlternativeSyntaxSniff: Superseded by Universal.ControlStructures.DisallowAlternativeSyntaxDeprecatedGlobalVariablesSniff: Add $wgHooks (Umherirrender)
MockBoilerplateSniff for PHPUnit tests (DannyS712)OneSpaceInlineArraySniff (Amir Sarabadani)ShortListSyntaxSniff to replace list() by short array syntax (Umherirrender)Generic.WhiteSpace.ScopeIndent (Daimona Eaytoy)Squiz.ControlStructures.ControlSignature (Daimona Eaytoy)AssignmentInControlStructuresSniff with Generic.CodeAnalysis.AssignmentInCondition (Daimona Eaytoy)DisallowEmptyLineFunctionsSniff with Squiz.WhiteSpace.FunctionOpeningBraceSpace (Daimona Eaytoy)AssertCountSniff: Prefer assertSameSize when both parts are count() (Func)DeprecatedGlobalVariablesSniff: Add $wgHooks (Umherirrender)ForbiddenFunctionsSniff: Fix not counting arguments correctly (Daimona Eaytoy)SpaceAfterClosureSniff: Expand to enforce space after arrow functions (Umherirrender)UnusedUseStatement: Ignore function name when detect unused use (Umherirrender)ValidGlobalNameSniff & UnusedGlobalVariablesSniff: Make sniffs skip dynamic names (Daimona Eaytoy)ParenthesesAroundKeyword: Use fixer->beginChangeset/endChangeset (Umherirrender)AssertionOrderSniff: Also run for assertNotEquals/assertNotSame (Umherirrender)
AssertionOrderSniff: Also run for assertNotEquals/assertNotSame (Umherirrender)AssertionOrderSniff: Handle more wrong actual values (DannyS712)ForbiddenFunctionsSniff: Forbid eval() and make ForbiddenFunctions sniff more flexible (Thiemo Kreuz)FunctionCommentSniff: Allow fully-typed functions to omit documentation (Lucas Werkmeister)FunctionCommentSniff: Allow fully typed __constructor without @param tags (thiemowmde)FunctionCommentSniff: Allow prose-only documentation for statically typed functions (Lucas Werkmeister)FunctionCommentSniff: Tiny performance optimization (thiemowmde)PropertyDocumentationSniff: Allow prose-only documentation for statically typed properties (Lucas Werkmeister)PropertyDocumentationSniff: Allow typed properties to omit documentation (Lucas Werkmeister)SpaceyParenthesisSniff: Minor performance optimization (thiemowmde)OneObjectStructurePerFile during FunctionComment tests (thiemowmde)build: Loosen symfony/polyfill-php80 requirement (Alexander Vorwerk)
Create SameLineCatch sniff to warn when a catch statement is not in the same line as the preceding closing bracket. (Taavi Väänänen)
SameLineCatch sniff to warn when a catch statement is not in the same
line as the preceding closing bracket. (Taavi Väänänen)EmptyLinesBetweenUse sniff to complain about blank lines between use
statements. (DannyS712)TrailingComma sniff to complain about missing trailing commas in
multiline arrays. (Lucas Werkmeister)AnnotationsSniff: Suggest expectExceptionMessageMatches() (Umherirrender)ForbiddenFunctionsSniff: Make forbidden argument count reporting more generic (Thiemo Kreuz)ExtendClassUsage: Remove dot from error message (Umherirrender)Create PHPUnitAssertEmpty sniff to warn against using assertEmpty (DannyS712)
PHPUnitAssertEmpty sniff to warn against using assertEmpty (DannyS712)AssertionOrderSniff: Also re-order actual value named $expected* (DannyS712)ClassLevelLicense: Skip whole rest of file (Lucas Werkmeister)FunctionAnnotationsSniff: Add some Psalm tags (Gergő Tisza)FunctionCommentSniff: Skip attributes when checking for doc block (DannyS712)PropertyDocumentationSniff: Handle visibility on its own line (DannyS712)SpecificAssertionsSniff: Add assertEmpty() and assertNotEmpty() (DannyS712)SpecificAssertionsSniff: Add assertIsArray() and assertIsNotArray() (DannyS712)AssertionOrderSniff: Expand for slightly more complex cases (DannyS712)
AssertionOrderSniff: Expand for slightly more complex cases (DannyS712)FunctionCommentSniff: Validate @return annotations of abstract methods (Tpt)Enable PSR12.Functions.ReturnTypeDeclaration for typehint spacing (DannyS712 & Daimona Eaytoy)
PSR12.Functions.ReturnTypeDeclaration for typehint spacing (DannyS712 & Daimona Eaytoy)AssertCountSniff: Allow manual count on both sides (DannyS712)DocumentationTypeTrait: Complain about type as a type (DannyS712)FunctionCommentSniff: Also skip {@inheritDoc} (DannyS712)PrefixedGlobalFunctionsSniff: Allow configuring prefixes (DannyS712)PrefixedGlobalFunctionsSniff: Drop ef from default prefixes (DannyS712)RedundantVarNameSniff: Also check static properties (DannyS712)UnsortedUseStatementsSniff: Add support for bracketed namespaces (DannyS712)UnusedUseStatementSniff: Add support for bracketed namespaces (DannyS712)FullQualifiedClassNameSniff: Fix docs typo (relly -> really) (DannyS712)LowerCamelFunctionsNameSniff: Minor clean up (DannyS712)UnsortedUseStatementsSniff: add early returns (DannyS712)ForbiddenFunctionsSniff: Warn about use of define() with deprecated third argument (Umherirrender)
PSR2.ControlStructures.SwitchDeclaration (re-apply) (James D. Forrester)SetMethodsSniff for PHPUnit tests using MockBuilder::setMethods (Daimona Eaytoy)Generic.WhiteSpace.LanguageConstructSpacing (Umherirrender)StaticClosureSniff (Umherirrender)SpaceBeforeBracketSniff: Fix newline handling (DannyS712)DirUsageSniff: Check strings outside of classes (DannyS712)PHPUnitTestTrait: Cache ::isTestFile() results (Thiemo Kreuz)AlphabeticArraySortSniff: Preserve tabs when autofixing (Umherirrender)FunctionAnnotationsSniff: Recognize more phpunit annotations (DannyS712)FinalPrivateSniff: Combine two early returns (Umherirrender)ValidGlobalNameSniff: Fix quotes around expected names (DannyS712)SpecificAssertionsSniff: Fix order of assertStringContainsString parameters (DannyS712)UnusedUseStatement: Add support for understanding multiple namespaces (Thiemo Kreuz)MediaWiki/Sniffs/Commenting/*: Fix false positive for Java-style array<int, string> types (Thiemo Kreuz)MediaWiki/Sniffs/Commenting/*: Move helper to DocumentationTypeTrait and re-use more often (Thiemo Kreuz)MediaWiki/Sniffs/Commenting/*:Fix spacing around exception type on @throws tag (Umherirrender)UnusedUseStatement: Fix support for Java-style array<int, string> (Thiemo Kreuz)UnusedUseStatement: Add support for Java-style arrays in @phan-var (Thiemo Kreuz)SpaceyParenthesisSniff: Fix error message for long array case (Umherirrender)ForbiddenFunctionsSniff: Warn about use of define() with deprecated third argument (Umherirrender)UnusedUseStatementSniff: Add support for phan annotations (Umherirrender)UnusedUseStatementSniff: Micro-optimizations (Daimona Eaytoy)UnusedUseStatementSniff: Include class names in messages (Lucas Werkmeister)UnsortedUseStatementsSniff: Fix loop on live coding/incomplete code (Umherirrender)SpaceBeforeBracketSniff: Remove special check (Umherirrender)DocCommentSniff: Remove SpacingDocTag for no-spaces before @param (Umherirrender)FunctionCommentSniff: Rename and remove variables (Umherirrender)ValidGlobalNameSniff: Allow non-two-characters prefixes for global variables (Alexander Mashin)ValidGlobalNameSniff: Don't return on first valid name (DannyS712)MediaWiki.Usage.DeprecatedConstantUsage: Replace DB_MASTER from 1.35.3+ (James D. Forrester)in_array branch in InArrayUsageSniff (Umherirrender)RedundantVarNameSniff (Umherirrender)@phan-var in UnusedUseStatementSniff (Umherirrender)ClassLevelLicenseSniff (Umherirrender)@var in PropertyDocumentationSniff (Umherirrender)PhpunitAnnotationsSniff (Umherirrender)SpaceBeforeClassBraceSniff (Umherirrender)SpaceBeforeSingleLineCommentSniff (Umherirrender)is_null in IsNullSniff (Umherirrender)Move AssertEqualsSniff, DeprecatedPHPUnitMethodsSniff, PHPUnitClassUsageSniff, and PHPUnitTypeHintsSniff to new MediaWiki.PHPUnit group (DannyS712)
AssertCountSniff to warn when using assertEquals or assertSame with the results of count (DannyS712)AssertionOrderSniff for PHPUnit assertions in the wrong order (DannyS712)MissingElseBetweenBracketsSniff to error when } is followed by { (Majavah)SpaceBeforeBracketSniff for spaces between variable and array offset (DannyS712)SpecificAssertionsSniff to encourage dedicated, simpler PHPUnit assertions (DannyS712)WhiteSpaceBeforeFunctionSniff for whitespace in function signatures (DannyS712)PSR2.Classes.PropertyDeclaration.Multiple (DannyS712)AssertEqualsSniff, DeprecatedPHPUnitMethodsSniff, PHPUnitClassUsageSniff, and PHPUnitTypeHintsSniff to new MediaWiki.PHPUnit group (DannyS712)AssertEqualsSniff: Whitespace handling clean-up (DannyS712)AssignmentInReturnSniff: Check for yield (Umherirrender)EmptyTagSniff: Also check the @access, @author, @dataProvider, @depends, @group, @license, @link, @since, and @suppress tags (DannyS712)EmptyTagSniff: Re-write for performance (Thiemo Kreuz)ExtendClassUsageSniff: Add sub classes of IndexPager to ContextSource checks (Umherirrender)ExtendClassUsageSniff: Fix variable name: $eligableFunc -> $eligibleFunc (Ammarpad)ExtendClassUsageSniff: Improve documentation (Ammarpad)ForbiddenFunctionsSniff: Add compact() as opposite of forbidden extract() (Umherirrender)FunctionAnnotationsSniff: Add @uses (Umherirrender)FunctionCommentSniff, PropertyDocumentationSniff: Allow parenthesis as punctuation (Umherirrender)FunctionCommentSniff, PropertyDocumentationSniff: Have sniff convert upper case NULL to null (Umherirrender)FunctionCommentSniff, PropertyDocumentationSniff: Update error message about "object" type hints (Thiemo Kreuz)FunctionCommentSniff: Allow intersection types (Umherirrender)FunctionCommentSniff: Check @param/@return on files ending in …Test.php (Umherirrender)FunctionCommentSniff: Check for yield when looking for @return (Umherirrender)FunctionCommentSniff: Expand FunctionCommentSniff::SKIP_STANDARD_METHODS (Umherirrender)FunctionCommentSniff: Improve check for test function (Umherirrender)FunctionCommentSniff: Require @return on doc block when return type hint is used (Umherirrender)LicenseCommentSniff: Handle possible whitespace in license names (Umherirrender)LowerCamelFunctionsNameSniff: Use PHPUnitTestTrait (Umherirrender)MissingVarType: Use camelCase for error type (Umherirrender)ParenthesesAroundKeywordSniff: Re-write to fix whitespace handling (Umherirrender)PropertyDocumentationSniff: Add checks for object and object[] in @var documentation (Umherirrender)PropertyDocumentationSniff: Check and require @var on files ending in …Test.php (Umherirrender)SuperGlobalsUsageSniff: Forbid use of super global $_FILES (Umherirrender)UnusedUseStatementSniff: Remove left over semicolons (Umherirrender)strcasecmp() where not necessary (Thiemo Kreuz)PHPUnitTestTrait to limit specific sniffs to code in PHPUnit tests (DannyS712)mediawiki/mediawiki-phan-config to 0.10.5 (DannyS712)mediawiki/mediawiki-phan-config to 0.10.6 (libraryupgrader)composer/semver versions (Reedy)// phpcs:… syntax (Thiemo Kreuz)Add FinalPrivateSniff (DannyS712)
FinalPrivateSniff (DannyS712)FunctionCommentSniff: Check object and object[] on union type and after fixes (Umherirrender)PropertyDocumentationSniff: Allow @inheritDoc to be valid documentation of class properties (Umherirrender)PropertyDocumentationSniff: Move EmptySees check to EmptyTagSniff (Umherirrender)callable/callable[] type hints in @param/@return/@var (Umherirrender)composer/semver constraints (Reedy)Re-disable PSR2.ControlStructures.SwitchDeclaration (enabled in v32.0.0) due to poor fixer (James D. Forrester)
PSR2.ControlStructures.SwitchDeclaration (enabled in v32.0.0) due to poor fixer (James D. Forrester)MediaWiki.Commenting.ClassLevelLicense from WikibaseCodeSniffer (Thiemo Kreuz)FunctionCommentSniff: Expand to error on object[] typehints (DannyS712)Enable PSR12.Functions.NullableTypeDeclaration (Umherirrender)
PSR12.Functions.NullableTypeDeclaration (Umherirrender)PSR2.ControlStructures.SwitchDeclaration (Ed Sanders)Generic.ControlStructures.DisallowYodaConditions (Ed Sanders)@phpcs-require-sorted-array tags (Umherirrender)RedundantVarNameSniff: Add understanding of legacy "var" keyword (Thiemo Kreuz)NullableTypeSniff: Fix handling of nullable type with default null (Arlo Breault)UnusedGlobalVariablesSniff: add support for closures (Umherirrender)ExtendClassUsageSniff: Expand subclasses of ContextSource and SpecialPage (DannyS712)ForbiddenFunctionsSniff: Disallow is_resource() (Kunal Mehta)ForbiddenFunctionsSniff: Disallow diskfreespace(), ini_alter(), and strchr() (Thiemo Kreuz)FullQualifiedClassNameSniff: Optional sniff that enforces using use statements (Thiemo Kreuz)FunctionCommentSniff: Handle empty type when adding null default (Umherirrender)FunctionCommentSniff: Fix handling of nullable doc with nullable type and default null (Arlo Breault)FunctionCommentSniff: Enforce lowercase primitive types (DannyS712)FunctionCommentSniff: Error on object typehints (DannyS712)FunctionAnnotationsSniff: Normalize @exception to @throws (Umherirrender)FunctionAnnotationsSniff: Allow @beforeClass and @afterClass (Timo Tijhof)FunctionAnnotationsSniff: Allow @noinspection (DannyS712)IsNullSniff: handle backslash-prefixed is_null usage (Michael Moll)MisleadingGlobalNamesSniff: Add a sniff for $wg* variables that aren't globals (DannyS712)PHPUnitAssertEqualsSniff: Report particularly confusing assertNotEquals( false ) (Thiemo Kreuz)PropertyDocumentationSniff: Add to validate @var on class properties (Umherirrender)UnusedUseStatementSniff: Recognize used classes even if variable/type in a tag are flipped (Thiemo Kreuz)UnusedUseStatementSniff: Detect uses in @see tags (Gergő Tisza)phpcodesniffer-standard in composer.json (DannyS712)DeprecatedGlobalVariables: Expand to cover $wgMemc (Daimona Eaytoy)
MediaWiki.Commenting.FunctionComment.NoParamType to ensure parameter type before parameter name (Umherirrender)MediaWiki.Commenting.FunctionComment.NotParenthesisParamName to make sure param name is not wrapped in parentheses (Umherirrender)PEAR.Functions.ValidDefaultValue.NotAtEnd to prohibit required parameters after optional ones (Max Semenik)PSR12.Traits.UseDeclaration to clean up the whitespace in use statements for traits (Umherirrender)Generic.Files.LineLength sniff: Add tab-width=4 and increase line length to 120 (Sam Wilson)DeprecatedGlobalVariables: Expand to cover $wgMemc (Daimona Eaytoy)DeprecatedGlobalVariables: Expand to cover $wgUser (DannyS712)DeprecatedGlobalVariables: Expand to cover $wgVersion (DannyS712)DocComment: Ignore self-closing doc comments /***/ (Umherirrender)FunctionAnnotations: Update UnrecognizedAnnotation sniff for stable interface policy tags (DannyS712)FunctionComment: Ignore anon classes when looking for return (Umherirrender)FunctionComment: Reduce code duplication about short type checks (Umherirrender)FunctionComment: Sniff for boolean/integer should not be case sensitive (DannyS712)LowerCamelFunctionsName: Allow __serialize and __unserialize magic methods (addshore)PHPUnitAssertEquals: Add problematic values 1 and 1.0 (Thiemo Kreuz)PlusStringConcat: Include += as well as + (Umherirrender)SpacyParenthesis: Fix newline detection (Umherirrender)UnsortedUseStatements: Fix failure with leading backslashes (Thiemo Kreuz)UnsortedUseStatements: Remove extra php7.4 code, fixed upstream (Umherirrender)UnusedUseStatement: Add @property-read and @property-write, per PSR 19 (Daimona Eaytoy)UnusedUseStatement: Also count uses in @method (DannyS712)UnusedUseStatement: Fix for complex @phan-var (Umherirrender)UnusedUseStatement: Fix unnecessary detection for const in same namespace (Umherirrender)UnusedUseStatement: Recognize uses in @phan-var comments (DannyS712)UnusedUseStatement: Update for deprecation of @expectedException (DannyS712)AssignmentInReturn: Fix possible index error (Thiemo Kreuz)FunctionComment: Reduce code duplication about parenthesis check (Umherirrender)FunctionComment: Reduce code duplication about punctation check (Umherirrender)FunctionComment: Streamline a few minor details in FunctionComment sniff (Thiemo Kreuz)is_null: Add test case for !is_null showing that parentheses are kept (Umherirrender)SpaceAfterControlStructure: Add test (Umherirrender)SpaceBeforeControlStructureBrace: Use T_OPEN_CURLY_BRACKET to check for '{' (Umherirrender)UnsortedUseStatements: Fix minor performance issue (Thiemo Kreuz)UnusedUseStatement: Full rewrite; 4x faster (Thiemo Kreuz)VariadicArgument: Check index and avoid some local vars (Umherirrender)SuperfluousVariadicArgComment out of FunctionComment (DannyS712)ForbiddenFunctions sniff: Remove little bits of unused code (Thiemo Kreuz)
ForbiddenFunctions sniff: Remove little bits of unused code (Thiemo Kreuz)FunctionComment sniff: Detect missing & for ParamNameNoMatch error code and autofix (Umherirrender)FunctionComment sniff: Remove a few pieces of unused code (Thiemo Kreuz)FunctionComment sniff: Simplify code utilizing isset() (Thiemo Kreuz)FunctionComment sniff: Fix sniff destroying comments mentioning other variables (Thiemo Kreuz)FunctionComment sniff: Add another test case for @param comments containing an & (Thiemo Kreuz)InArrayUsage sniff: Improve performance (Thiemo Kreuz)MultipleEmptyLines sniff: Optimize for performance (again) (Thiemo Kreuz)MultipleEmptyLines sniff: Rewrite for performance (Thiemo Kreuz)MultipleEmptyLines sniff: Detect multiple empty lines after single line comment or php open (Umherirrender)UnsortedUseStatement sniff: Fix handling other content between use statements (mainframe98)UnsortedUseStatements sniff: Consolidate duplicate code (Thiemo Kreuz)$error/$data variables in many sniffs (Thiemo Kreuz)| sort from gen-changelog.sh (Kunal Mehta)phpunit deprecations: Handle assertType() as well (Daimona Eaytoy)
Add a sniff to ensure that setUp and tearDown have :void typehints (Daimona Eaytoy)
Update squizlabs/php_codesniffer to 3.5.0 (Umherirrender)
Update composer/spdx-licenses from 1.4.0 to 1.5.1 (Reedy)
Prohibit aliases is_long, is_double and is_real (mainframe98)
Replace sniff for forbidden globals by deprecated globals (Umherirrender)
Fix deprecation check for compounded licenses (Umherirrender)
__METHOD__ in closures (Umherirrender)Disable 'Generic.PHP.DeprecatedFunctions' sniff (Kunal Mehta)
Add FunctionAnnotations checking tags in function comments only (Thiemo Kreuz)
@gropu to @group (Kunal Mehta)Require PHP 7 or HHVM to run (Kunal Mehta)
Replace jakub-onderka/* with php-parallel-lint/* (Reedy)
Add tab-width=4 and increase line length to 120 (Sam Wilson)
Disable 'Generic.PHP.DeprecatedFunctions' sniff (Kunal Mehta)
Nothing published for this version
Note: This will be the final release with PHP 5.5 and 5.6 support.
Note: This will be the final release with PHP 5.5 and 5.6 support.
Add common autofix replacements for invalid license tag sniff (Kunal Mehta)
Allow globals to start with numbers (Umherirrender)
Fix SpaceBeforeControlStructureBraceSniff (Thiemo Kreuz)
Add sniff to find tests without @covers tags (Kunal Mehta)
object type-hint (Kunal Mehta)Add sniff for using is_int over is_integer (Kunal Mehta)
Update PHP_CodeSniffer to 3.1.1 (Paladox)
Add sniff for @params instead of @param (Umherirrender)
Add sniff to find and replace deprecated constants (Kunal Mehta)
phpunit: replace deprecated strict=true (Umherirrender)
0 if necessary (Kunal Mehta)Add GoatSniffer ASCII art (Kunal Mehta)
Added OpeningKeywordBraceSniff (Umherirrender)
Add .gitattributes (Umherirrender)
Add sniff to prevent against using PHP 7's Unicode escape syntax (Kunal Mehta)
&$this that causes warnings in PHP 7.1 (Kunal Mehta)Add sniff to enforce "function (" for closures (Kunal Mehta)
and and or (Kunal Mehta)One column per quarter.