WordPress\AiClientDependencies\Http\Discovery\Exception

NoCandidateFoundException::stringifyprivateWP 1.0

Method of the class: NoCandidateFoundException{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->stringify( $mixed );
$mixed(required)
.

NoCandidateFoundException::stringify() code WP 7.0

private function stringify($mixed)
{
    if (is_string($mixed)) {
        return $mixed;
    }
    if (is_array($mixed) && 2 === count($mixed)) {
        return sprintf('%s::%s', $this->stringify($mixed[0]), $mixed[1]);
    }
    return is_object($mixed) ? get_class($mixed) : gettype($mixed);
}