FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Shorten FQCNs in place inside compound type strings by lacatoire · Pull Request #4112 · phpDocumentor/phpDocumentor · GitHub

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

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

Conversation

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 force-pushed the fix/array-shape-truncation branch from f4a00f8 to 5bab1c9 Compare April 17, 2026 11:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL