'preg_match' can be replaced with 'str_contains'
Reports the preg_match()
calls with pattern
arguments that don't use any regexp facilities. Such calls can be replaced with str_starts_with()
, str_ends_with()
or str_contains()
calls.
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023