Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 12, 2026

Updates the requirements on mediawiki/mediawiki-codesniffer to permit the latest version.

Changelog

Sourced from mediawiki/mediawiki-codesniffer's changelog.

v49.0.0 / 2026-01-11

Changed sniffs

  • 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)

Documentation, dependencies and build changes

  • build: Update phpunit/phpunit to 10.5.58 (Umherirrender)
  • Upgrade squizlabs/php_codesniffer from 3.13.2 to 3.13.5 (James D. Forrester)
  • build: Updating mediawiki/mediawiki-phan-config to 0.18.0 (Alexander Vorwerk)
  • Drop support for PHP 8.1 (Alexander Vorwerk)

v48.0.0 / 2025-09-04

New sniffs

  • Add ClassAnnotationsSniff to check for disallowed class annotations (Daimona Eaytoy)
  • Add ClassDocumentationSniff to check doc comments for classes (Daimona Eaytoy)
  • Add CommentBeforeClassSniff to check comments before classes (Daimona Eaytoy)
  • Add NamespaceNameSniff to check naming conventions (Umherirrender)
  • Add PropertyAnnotationsSniff to validate property annotations (Umherirrender)

Changed sniffs

  • 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)

Removed sniffs

  • FinalPrivateSniff (Umherirrender)

... (truncated)

Commits
  • 15219ac Release v49.0.0
  • e1b2753 Use tabs instead of spaces in phpunit.xml.dist
  • 077caad chore: Use const in traits
  • 719255c Drop support for PHP 8.1
  • 77fa933 build: Updating mediawiki/mediawiki-phan-config to 0.18.0
  • 0cc3902 readme: update version information
  • 64f6ca2 ForbiddenFunctionsSniff: Add some deprecated php internal functions
  • 598040b ValidGlobalNameSniff: Treat deprecated or removed globals as invalid
  • 0af2e08 AssignmentInReturnSniff: Ignore arrow functions
  • 09ac7af FunctionCommentSniff: Parse callable parameter syntax
  • Additional commits viewable in compare 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 [mediawiki/mediawiki-codesniffer](https://github.com/wikimedia/mediawiki-tools-codesniffer) to permit the latest version.
- [Changelog](https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/HISTORY.md)
- [Commits](wikimedia/mediawiki-tools-codesniffer@v47.0.0...v49.0.0)

---
updated-dependencies:
- dependency-name: mediawiki/mediawiki-codesniffer
  dependency-version: 49.0.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant