SCA with Php Inspections (EA Ultimate)

This commit is contained in:
Vladimir Reznichenko
2018-02-27 19:13:22 +01:00
parent f9b03dfd42
commit f10cb6aeee
10 changed files with 14 additions and 12 deletions

View File

@@ -125,7 +125,7 @@ class NumberValidator extends Validator
{
return is_array($value)
|| (is_object($value) && !method_exists($value, '__toString'))
|| (!is_object($value) && !is_scalar($value) && !is_null($value));
|| (!is_object($value) && !is_scalar($value) && $value !== null);
}
/**