VulcanPhp\PrettyError\PrettyError->handleError():54 PHP 8.2.25

strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

/home/movtv/public_html/app/Http/Controllers/Explore.php:54

                                    
42
            $type,
43
            ['with_origin_country' => Str::lowercase($code) != 'us' $code null],
44
            Str::read(
45
                substr($country0strrpos($country'-'))
46
            )
47
        );
48
    }
49
50
    public function company($type$slug)
51
    {
52
        return $this->explore(
53
            $type,
54
            ['with_companies' => substr($slugstrrpos($slug'-') + 1)],
55
            Str::read(
56
                substr($slug0strrpos($slug'-'))
57
            )
58
        );
59
    }
60
61
    public function network($type$slug)
62
    {
63
        return $this->explore(
64
            $type,
65
            ['with_networks' => substr($slugstrrpos($slug'-') + 1)],
66
            Str::read(
67
                substr($slug0strrpos($slug'-'))