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

analyse/types/invalid-pipe

In the analyse-basic preset and every stricter one. Report only.

What it does

Reports a pipe callable whose first parameter is passed by reference. A pipe supplies a value, not a reference. The basic preset checks invokable $this receivers; essential and stricter presets check other callable expressions too.

Configuration

[analyse.rules]
"types/invalid-pipe" = "on"

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

Replaces

More analyse/types rules · Edit this page

Last updated on

Was this page helpful?