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

lint/lumen/prefer-middleware-array

Not in any preset. In Rector’s rector-laravel/lumen set. Safe fix.

What it does

Changes middlewares from rule definitions from string to array notation.

Configuration

[lint.rules]
"lumen/prefer-middleware-array" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Replaces

More lint/lumen rules · Edit this page

Last updated on

Was this page helpful?