'preg_match()' can be replaced with comparison
Reports the preg_match()
calls that are provided with a string argument starting with ^
(Start of String anchor) and ending with $
(End of String anchor). Such calls can be replaced with a comparison operation.
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023