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

                                    
27
28
        return $this->explore(
29
            $type,
30
            ['with_original_language' => Str::lowercase($code) != 'en' $code null],
31
            Str::read(
32
                substr($language0strrpos($language'-'))
33
            )
34
        );
35
    }
36
37
    public function country($type$country)
38
    {
39
        $code substr($countrystrrpos($country'-') + 1);
40
41
        return $this->explore(
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(