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

lint/types/prefer-literal-bool-phpdoc

In the types set. Unsafe fix: it can change behaviour. Planned: not in Pun yet. Enabling it is a config error.

What it does

Narrow @return docblock “bool” to “false” or “true” when the native return type only allows one of them

Replaces

More lint/types rules · Edit this page

Last updated on

Was this page helpful?