mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-15 03:38:01 +01:00
SCA with Php Inspections (EA Ultimate)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user