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

lint/security

Code that can be exploited, or that leaks or hides data.

add-sensitive-parameter

Requires that parameters that are likely to contain sensitive information (e.g., passwords) are marked with the #[SensitiveParameter] attribute.

In the code-quality set. Safe fix. Intent: suspicious.

no-debug-calls

Remove or report debug calls left in code: dd(), dump(), var_dump(), ray(), and ->dd()/->dump() in Pest expectations.

In the coding-style set. Unsafe fix: it can change behaviour. Intent: suspicious.

no-eval

Detects unsafe uses of the eval construct.

In the code-quality set. Report only. Intent: suspicious.

no-ffi

Detects unsafe use of the PHP FFI (Foreign Function Interface) extension.

In the code-quality set. Report only. Intent: suspicious.

no-global

Detects the use of the global keyword and the $GLOBALS variable.

In the code-quality set. Report only. Intent: suspicious.

no-homoglyph-names

Replace accidental usage of homoglyphs (non ascii characters) in names.

In the code-quality set. Unsafe fix: it can change behaviour. Intent: suspicious.

no-insecure-comparison

Detects insecure comparison of passwords or tokens using ==, !=, ===, or !==.

In the code-quality set. Report only. Intent: suspicious.

no-literal-password

Detects the use of literal values for passwords or sensitive data.

In the code-quality set. Report only. Intent: suspicious.

no-request-variable

Detects the use of the $_REQUEST variable, which is considered unsafe.

In the code-quality set. Report only. Intent: suspicious.

no-restricted-functions

Flags calls to functions that are disallowed via rule configuration.

Not in any set. Report only. Intent: suspicious.

no-restricted-instantiation

Flags direct instantiation of specific types that are disallowed via rule configuration.

Not in any set. Report only. Intent: suspicious.

no-tainted-data

Detects user (tainted) data being passed directly to sink functions or constructs (such as echo, print, or user-defined “log” functions).

In the code-quality set. Report only. Intent: suspicious.

require-preg-quote-delimiter

This rule requires that when using preg_quote(), the second $delimiter argument is always provided.

In the code-quality set. Report only. Intent: suspicious.

Last updated on

Was this page helpful?