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

analyse/classes/incompatible-constant-override

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

What it does

Reports overrides of final constants, reduced constant visibility, and incompatible native or PHPDoc constant types. Native and PHPDoc covariance checks run with the essential preset and stricter presets.

Configuration

[analyse.rules]
"classes/incompatible-constant-override" = "on"

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

Replaces

More analyse/classes rules · Edit this page

Last updated on

Was this page helpful?