Automattic\WooCommerce\Vendor\GraphQL\Utils
Utils::printSafe
Print a value that came from PHP for debugging purposes.
Method of the class: Utils{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Utils::printSafe( $value ): string;
- $value(mixed) (required)
- .
Utils::printSafe() Utils::printSafe code WC 11.1.2
public static function printSafe($value): string
{
if (is_object($value)) {
if (method_exists($value, '__toString')) {
return $value->__toString();
}
return 'instance of ' . get_class($value);
}
return static::printSafeInternal($value);
}