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

                                    
14
    {
15
        return $this->explore(
16
            $type,
17
            ['with_genres' => substr($slugstrrpos($slug'-') + 1)],
18
            Str::read(
19
                substr($slug0strrpos($slug'-'))
20
            )
21
        );
22
    }
23
24
    public function language($type$language)
25
    {
26
        $code substr($languagestrrpos($language'-') + 1);
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);