Handle null values better in title uniqueness check

This commit is contained in:
Timothy Warren 2021-02-08 17:03:04 -05:00
parent ff5503af16
commit cb7a4c28e5

View File

@ -412,11 +412,11 @@ final class Kitsu {
/**
* Determine if an alternate title is unique enough to list
*
* @param string $title
* @param string|null $title
* @param array $existingTitles
* @return bool
*/
private static function titleIsUnique(string $title = '', array $existingTitles = []): bool
private static function titleIsUnique(?string $title = '', array $existingTitles = []): bool
{
if (empty($title))
{