Skip to content

Shorten FQCNs in place inside compound type strings - #4112

Open
lacatoire wants to merge 5 commits into
phpDocumentor:masterfrom
lacatoire:fix/array-shape-truncation
Open

Shorten FQCNs in place inside compound type strings#4112
lacatoire wants to merge 5 commits into
phpDocumentor:masterfrom
lacatoire:fix/array-shape-truncation

Conversation

@lacatoire

Copy link
Copy Markdown
Contributor

When a parameter type is a compound expression (e.g. array{name?: string, chartColor?: \\App\\ChartColor, scheme?: string}), the class:short presentation used to explode('\\\\') and keep only the last segment, dropping everything before the FQCN.

Now FQCNs are shortened in place via a callback, leaving the surrounding shape intact. Pure FQCN titles keep their existing behavior.

Fixes #4059.

@lacatoire
lacatoire force-pushed the fix/array-shape-truncation branch from f4a00f8 to 5bab1c9 Compare April 17, 2026 11:50
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.

Truncation of array parameter

1 participant