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

lint/dead-code/no-redundant-type-check

In the lint-strict preset. In Rector’s rector/dead-code set. Unsafe fix: it can change behavior.

What it does

Remove is_<type>() check that can never fail on already known type

Configuration

[lint.rules]
"dead-code/no-redundant-type-check" = "error"

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

Replaces

More lint/dead-code rules · Edit this page

Last updated on

Was this page helpful?