src/Type.php
public static function determine($value): string
    {
        $type = \gettype($value);

        switch ($type) {
            case 'object':
                return \get_class($value);

            case 'integer':
                return 'int';

            case 'boolean':
                return 'bool';

            case 'NULL':
                return 'null';

            case 'double':
                return 'float';

            default:
                return $type;
        }
    }
public static function determine($value): string
    {
        $type = \gettype($value);

        switch ($type) {
            case 'object':
                return \get_class($value);

            case 'integer':
                return 'int';

            case 'boolean':
                return 'bool';

            case 'NULL':
                return 'null';

            case 'double':
                return 'float';

            default:
                return $type;
        }
    }
public static function determine ( $ value ) : string { $ type = \ gettype ( $ value ) ; switch ( $ type ) { case 'object' : return \ get_class ( $ value ) ; case 'integer' : return 'int' ; case 'boolean' : return 'bool' ; case 'NULL' : return 'null' ; case 'double' : return 'float' ; default : return $ type ; } }
Return the type of the given value

@param mixed $value

@return string
Return the type of the given value