| 1 | <?php |
||
| 11 | class TypeHelper |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Compare data types of some value |
||
| 15 | * |
||
| 16 | * @param string $name Name of value |
||
| 17 | * @param mixed $whatType What type has value |
||
| 18 | * @param mixed $isType What type should be |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | 9 | public static function checkIfTypeMismatch(string $name, $whatType, $isType): bool |
|
| 25 | } |
||
| 26 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.