Skip to content

feat(metadata): document BackwardCompatibleFilterDescriptionTrait as public API#8326

Merged
soyuka merged 1 commit into
api-platform:mainfrom
soyuka:feat/document-bc-filter-trait
Jun 17, 2026
Merged

feat(metadata): document BackwardCompatibleFilterDescriptionTrait as public API#8326
soyuka merged 1 commit into
api-platform:mainfrom
soyuka:feat/document-bc-filter-trait

Conversation

@soyuka

@soyuka soyuka commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary

Promotes BackwardCompatibleFilterDescriptionTrait from an @internal helper to a documented, user-facing public API. Drops the @internal tag and adds a class-level docblock describing it as the way for a filter to satisfy the legacy FilterInterface::getDescription() requirement (returns []) until that method is removed in 6.0. No code/behavior change.

Roadmap

Part of the 4.4 preparation. Spec: TODO-filters.md §5.6, §8.
Phase: 4.4 (additive — exposes an existing symbol as public, no BC break).

Test plan

  • New unit test pins the public contract (getDescription('Foo') === [] via an anonymous class using the trait).
  • phpstan + php-cs-fixer clean; no new internal-usage findings across the 9 ORM filters that use the trait.
  • tests/Functional/Parameters green (pre-existing unrelated Issue7916 failures confirmed at upstream/main).

…public API

Drop @internal and add a class-level docblock describing the trait as the user-facing
way to satisfy the legacy FilterInterface::getDescription() requirement until it is
removed in 6.0.

Refs TODO-filters.md §5.6, §8.
@soyuka soyuka merged commit 48bc56e into api-platform:main Jun 17, 2026
84 of 96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant