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

modernize set

Newer PHP syntax, up to your configured PHP target version.

[lint]
sets = ["modernize"]

Ecosystem and target-version gates still apply. Planned rules do not run.

Enabled rules (43)

Rule Configuration Status
lint/arrays/prefer-array-spread "error" Ported
lint/classes/add-stringable "error" Ported
lint/classes/no-underscore-class "error" Ported
lint/classes/prefer-self-in-final "error" Ported
lint/control-flow/no-switch-continue "error" Ported
lint/functions/no-void-reference-return "error" Ported
lint/operators/prefer-coalesce "error" Ported
lint/operators/prefer-coalesce-assign "error" Ported
lint/operators/prefer-coalesce-assign-over-fallback "error" Ported
lint/php-8.2/add-skip-dots-flag "error" Ported
lint/php-8.2/no-dollar-brace-interpolation "error" Ported
lint/php-8.2/no-utf8-encode-decode "error" Ported
lint/php-8.2/prefer-readonly-class "error" Ported
lint/php-8.3/add-const-type "error" Ported
lint/php-8.3/prefer-dynamic-class-constant "error" Ported
lint/php-8.3/prefer-json-validate "error" Ported
lint/php-8.3/prefer-ldap-uri "error" Ported
lint/php-8.3/prefer-readonly-anonymous-class "error" Ported
lint/php-8.3/prefer-self-class "error" Ported
lint/php-8.4/add-csv-escape-argument "error" Ported
lint/php-8.4/prefer-array-find "error" Ported
lint/php-8.4/prefer-round-mode-enum "error" Ported
lint/php-8.5/no-finfo-buffer-context "error" Ported
lint/php-8.5/no-null-array-key "error" Ported
lint/php-8.5/no-null-debug-info "error" Ported
lint/php-8.5/no-out-of-range-chr "error" Ported
lint/php-8.5/prefer-array-first-last "error" Ported
lint/php-8.5/prefer-ord-first-byte "error" Ported
lint/php-8.6/prefer-clamp "error" Ported
lint/php-8.6/prefer-readonly-property-default "error" Planned
lint/style/no-ereg "error" Ported
lint/style/no-php4-constructor "error" Ported
lint/style/no-redundant-final "error" Ported
lint/style/no-sleep-wakeup "error" Ported
lint/style/prefer-arrow-function "error" Ported
lint/style/prefer-class-constant "error" Ported
lint/style/prefer-class-keyword-on-object "error" Ported
lint/style/prefer-dir-constant "error" Ported
lint/style/prefer-dirname-levels "error" Ported
lint/style/prefer-pow-operator "error" Ported
lint/style/prefer-random-int "error" Ported
lint/style/prefer-str-contains "error" Ported
lint/style/require-implode-separator "error" Ported

Rules left off (637)

Last updated on

Was this page helpful?