Automattic\WooCommerce\Vendor\Symfony\Polyfill\Php80
Php80::get_debug_type
Method of the class: Php80{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Php80::get_debug_type( $value ): string;
- $value(required)
- .
Php80::get_debug_type() Php80::get debug type code WC 10.5.0
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';
}