Supported Versions: PHP 8
Determine if a string contains a given substring
str_contains(string $haystackstring $needle): bool
                }

            }



            if (
str_contains($identifier"@anonymous\0")) {

                
$this->value $identifier preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function ($m) {

                    return 
class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' $m[0];

                }, 
$identifier);
        }

        unset(
$a[$xPrefix.'string'], $a[Caster::PREFIX_DYNAMIC.'xdebug_message'], $a[Caster::PREFIX_DYNAMIC.'__destructorException']);



        if (isset(
$a[Caster::PREFIX_PROTECTED.'message']) && str_contains($a[Caster::PREFIX_PROTECTED.'message'], "@anonymous\0")) {

            
$a[Caster::PREFIX_PROTECTED.'message'] = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function ($m) {

                return 
class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' $m[0];

            }, 
$a[Caster::PREFIX_PROTECTED.'message']);
                $label substr($label7);

            }

            
$href substr($href7);

        } elseif (
str_contains($href'://')) {

            
$this->attr['href'] = $href;



            return;
        $a = static::castFunctionAbstract($c$a$stub$isNested$filter);



        if (!
str_contains($c->name'{closure}')) {

            
$stub->class = isset($a[$prefix.'class']) ? $a[$prefix.'class']->value.'::'.$c->name $c->name;

            unset(
$a[$prefix.'class']);

        }
                } elseif (\is_array($v)) {

                    
$signature .= $v '[…'.\count($v).']' '[]';

                } elseif (
\is_string($v)) {

                    
$signature .= 10 \strlen($v) && !str_contains($v'\\') ? "'{$v}'" "'…".\strlen($v)."'";

                } elseif (
\is_bool($v)) {

                    
$signature .= $v 'true' 'false';

                } elseif (
\is_object($v)) {
        $obj $stub->value;

        
$class $stub->class;



        if (
\PHP_VERSION_ID 80000 "\0" === ($class[15] ?? null) : str_contains($class"@anonymous\0")) {

            
$stub->class get_debug_type($obj);

        }

        if (isset(
$this->classInfo[$class])) {
                    case is_nan($value):  $value 'NAN'; break;

                    default:

                        
$value = (string) $value;

                        if (!
str_contains($value$this->decimalPoint)) {

                            
$value .= $this->decimalPoint.'0';

                        }

                        break;
    public function __construct(string $host, array $contextProviders = [])

    {

        if (!
str_contains($host'://')) {

            
$host 'tcp://'.$host;

        }
    public function __construct(string $hostLoggerInterface $logger null)

    {

        if (!
str_contains($host'://')) {

            
$host 'tcp://'.$host;

        }