VulcanPhp\PrettyError\PrettyError->handleError():32 PHP 8.2.22

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

/home/movtv/public_html/resources/views/components/video-list.php:32

                                    
20
            <div class="text-gray-400 opacity-25">
21
                <svg xmlns="http://www.w3.org/2000/svg" class="w-10/12" viewBox="0 0 24 24">
22
                    <path fill="currentColor" d="M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm.001 6c-.001 0-.001 0 0 0h-.466l-2.667-4H20l.001 4zm-5.466 0-2.667-4h2.596l2.667 4h-2.596zm-2.404 0H9.535L6.869 5h2.596l2.666 4zM4 5h.465l2.667 4H4V5z"></path>
23
                </svg>
24
            </div>
25
        <?php endif ?>
26
    </a>
27
    <div class="w-9/12 md:w-10/12 px-3 md:px-4 flex flex-col justify-between text-sm">
28
        <div>
29
            <a fire title="watch <?= $isTv $video->name $video->title ?> online HD" href="<?= $slug ?>" class="flex items-start text-gray-200 font-semibold"><?= $isTv $video->name $video->title ?></a>
30
            <span style="cursor:default" class="text-gray-400 block my-[2px]"><?= Time::dateFormat($isTv $video->first_air_date $video->release_date?></span>
31
            <p class="text-xs">
32
    <?= $video->genres(fn ($genres) => join(', 'array_map(fn ($id$title) => sprintf('<a fire href="%s" title="watch %s videos online HD">%s</a>'url('genre', ['type' => $isTv 'tv' 'movie''slug' => Str::slugif($title ?? '') . '-' $id]), htmlspecialchars($titleENT_QUOTES'UTF-8'), htmlspecialchars($titleENT_QUOTES'UTF-8')), array_keys($genres), array_values($genres)))) ?>
33
</p>
34
35
        </div>
36
        <?php if (isset($key)) : ?>
37
            <span class="text-gray-400 text-2xl font-light mr-1"><?= $key ?></span>
38
        <?php endif ?>
39
    </div>
40
</div>