Automattic\WooCommerce\Vendor\Symfony\Polyfill\Php80

Php80::get_debug_typepublic staticWC 1.0

Метод класса: Php80{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Php80::get_debug_type( $value ): string;
$value(обязательный)
.

Код Php80::get_debug_type() WC 10.4.3

public static function get_debug_type($value): string
{
    switch (true) {
        case null === $value: return 'null';
        case \is_bool($value): return 'bool';
        case \is_string($value): return 'string';
        case \is_array($value): return 'array';
        case \is_int($value): return 'int';
        case \is_float($value): return 'float';
        case \is_object($value): break;
        case $value instanceof \__PHP_Incomplete_Class: return '__PHP_Incomplete_Class';
        default:
            if (null === $type = @get_resource_type($value)) {
                return 'unknown';
            }

            if ('Unknown' === $type) {
                $type = 'closed';
            }

            return "resource ($type)";
    }

    $class = \get_class($value);

    if (false === strpos($class, '@')) {
        return $class;
    }

    return (get_parent_class($class) ?: key(class_implements($class)) ?: 'class').'@anonymous';
}