lint/performance/require-qualified-native-constant
Not in any set. Unsafe fix: it can change behaviour.
What it does
Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
Configuration
[lint.rules]
"performance/require-qualified-native-constant" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
exclude |
list |
Any | ["null", "false", "true"] |
exclude |
fix-built-in |
bool |
Any | true |
fix_built_in |
include |
list |
Any | [] |
include |
scope |
enum |
all, namespaced |
"all" |
scope |
strict |
bool |
Any | true |
strict |
Replaces
native_constant_invocation(php-cs-fixer, risky)