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

lint/style/no-ereg

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

What it does

Replace deprecated ereg regular expression functions with preg.

Configuration

[lint.rules]
"style/no-ereg" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

More lint/style rules · Edit this page

Last updated on

Was this page helpful?