Skip to content

[TASK] Option to collect multiple PhpDoc annotations#1361

Merged
s2b merged 1 commit intomainfrom
task/collectAllPhpDoc
Apr 3, 2026
Merged

[TASK] Option to collect multiple PhpDoc annotations#1361
s2b merged 1 commit intomainfrom
task/collectAllPhpDoc

Conversation

@s2b
Copy link
Copy Markdown
Contributor

@s2b s2b commented Apr 3, 2026

ViewHelperMetaFactory, which is used both for CLI commands (such as cache warmup and schema generation) and for automatic documentation, previously only collected the last instance of a PhpDoc annotation on a ViewHelper class:

/**
 * @see link1
 * @see link2
 */

In that example, the metadata would always just contain link2. This patch introduces a new flag that allows collecting all instances of annotations. When set, ViewHelperMetadata always stores arrays instead of strings, even if only one instance of the annotation exists.

`ViewHelperMetaFactory`, which is used both for CLI commands (such as
cache warmup and schema generation) and for automatic documentation,
previously only collected the last instance of a PhpDoc annotation
on a ViewHelper class:

```
/**
 * @see link1
 * @see link2
 */
```

In that example, the metadata would always just contain `link2`. This
patch introduces a new flag that allows collecting all instances of
annotations. When set, `ViewHelperMetadata` always stores arrays instead
of strings, even if only one instance of the annotation exists.
@s2b s2b added backport and removed backport labels Apr 3, 2026
@s2b s2b merged commit a0b26b4 into main Apr 3, 2026
10 checks passed
@s2b s2b deleted the task/collectAllPhpDoc branch April 3, 2026 19:24
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