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

                                    
5
use App\Core\Tmdb\Model\GenreCollection;
6
use App\Core\Tmdb\Model\TmdbCollection;
7
use App\Core\Tmdb\TmdbClient;
8
use VulcanPhp\Core\Helpers\Str;
9
use VulcanPhp\SimpleDb\Includes\Paginator\Paginator;
10
11
class Explore
12
{
13
    public function genre($type$slug)
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],