Fixes for issues found with Static Code Analysis with Php Inspections (EA Extended) (#13606)

* Php Inspections (EA Extended): language level migration fixes
* Php Inspections (EA Extended): instanceof a trait always return false
* Php Inspections (EA Extended): fixed preg_quote (/ is not escaped by default)
* Php Inspections (EA Extended): fixed a greedy regex
* Php Inspections (EA Extended): refereted instanceof self in a trait
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): more greedy regexes fixed
This commit is contained in:
Vladimir Reznichenko
2017-02-22 15:07:52 +01:00
committed by Alexander Makarov
parent 2de18cf9a5
commit a182ce57fc
7 changed files with 8 additions and 8 deletions

View File

@ -527,7 +527,7 @@ class IpValidator extends Validator
*/
private function getIpParsePattern()
{
return '/^(' . preg_quote(static::NEGATION_CHAR) . '?)(.+?)(\/(\d+))?$/';
return '/^(' . preg_quote(static::NEGATION_CHAR, '/') . '?)(.+?)(\/(\d+))?$/';
}
/**