VulcanPhp\PrettyError\PrettyError->handleError():65 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:65

                                    
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'-'))
68
            )
69
        );
70
    }
71
72
    protected function explore($type$filter$title)
73
    {
74
        $client     TmdbClient::create($type);
75
        $result     $client->find(array_merge($filter, ['page' => input('page')]));
76
        $cache      cache('tmdb.' $type);
77
        $viewModel  = new TmdbCollection(
78
            new GenreCollection(