lint/arrays/prefer-array-spread
In the modernize set. Unsafe fix: it can change behaviour.
What it does
Detects calls to array_merge() and suggests using the array spread operator (...) in an array literal instead.
Configuration
[lint.rules]
"arrays/prefer-array-spread" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
Pun/prefer_array_spread(pun)prefer-array-spread(mago-linter)