Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/style/prefer-generic-array-phpdoc

Not in any set. Unsafe fix: it can change behaviour.

What it does

PHPDoc array<T> type must be used instead of T[].

Configuration

[lint.rules]
"style/prefer-generic-array-phpdoc" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

More lint/style rules · Edit this page

Last updated on

Was this page helpful?