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

lint/phpunit/add-will-return-callback-false-fallback

In the code-quality set. Unsafe fix: it can change behaviour. Runs when phpunit is installed. Planned: not in Pun yet. Enabling it is a config error.

What it does

Add a “return false” fallback to a willReturnCallback() closure that only returns booleans, but can fall through without a return

Replaces

More lint/phpunit rules · Edit this page

Last updated on

Was this page helpful?