Skip to content

Drop redundant parentheses around the handler callable type hints#222

Merged
GrahamCampbell merged 1 commit into
3.0from
change/drop-redundant-callable-parens
Jun 13, 2026
Merged

Drop redundant parentheses around the handler callable type hints#222
GrahamCampbell merged 1 commit into
3.0from
change/drop-redundant-callable-parens

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Member

The $handlers property documented its two callable slots as (callable|null), but a bare callable is already an atomic type and needs no wrapping parentheses inside the array shape. This drops the redundant parentheses to match the unparenthesized bare-callable style used elsewhere, which parses to exactly the same type.

@GrahamCampbell GrahamCampbell added this to the 3.0.0 milestone Jun 13, 2026
@GrahamCampbell GrahamCampbell merged commit 70b9b12 into 3.0 Jun 13, 2026
22 checks passed
@GrahamCampbell GrahamCampbell deleted the change/drop-redundant-callable-parens branch June 13, 2026 21:44
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