|
|
@ -13,12 +13,11 @@ class TypeHelper |
|
|
/** |
|
|
/** |
|
|
* Compare data types of some value |
|
|
* Compare data types of some value |
|
|
* |
|
|
* |
|
|
* @param string $name Name of value |
|
|
|
|
|
* @param mixed $whatType What type has value |
|
|
* @param mixed $whatType What type has value |
|
|
* @param mixed $isType What type should be |
|
|
* @param mixed $isType What type should be |
|
|
* @return bool |
|
|
* @return bool |
|
|
*/ |
|
|
*/ |
|
|
public static function checkIfTypeMismatch(string $name, $whatType, $isType): bool |
|
|
|
|
|
|
|
|
public static function checkIfTypeMismatch($whatType, $isType): bool |
|
|
{ |
|
|
{ |
|
|
return ($whatType !== $isType); |
|
|
return ($whatType !== $isType); |
|
|
} |
|
|
} |
|
|
|