Skip to content

Conversation

@cheesegrits
Copy link
Contributor

Description

Adding Htmlable to the return type for the getDescription method in the HasDescriptions contract, to allow returning HtmlString from enum descriptions.

This should not cause any BC issues, as existing concrete getDescription methods using ?string as the return type would be covariant (more specific), which PHP is happy with.

Visual changes

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@github-project-automation github-project-automation bot moved this to Todo in Roadmap Jan 8, 2026
@danharrin danharrin changed the base branch from 4.x to 3.x January 9, 2026 08:39
@danharrin danharrin added the enhancement New feature or request label Jan 9, 2026
@danharrin danharrin added this to the v3 milestone Jan 9, 2026
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Roadmap Jan 9, 2026
@danharrin danharrin merged commit b96f442 into filamentphp:3.x Jan 9, 2026
24 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants