Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 6eeef9c317 - Show all commits

View File

@ -279,12 +279,12 @@ final class Model
*/
private function getMediaId (array $data, string $type = 'ANIME'): ?string
{
if ($data['anilist_id'] !== NULL)
if (isset($data['anilist_id']))
{
return $data['anilist_id'];
}
if ($data['mal_id'] !== NULL)
if (isset($data['mal_id']))
{
return $this->getMediaIdFromMalId($data['mal_id'], mb_strtoupper($type));
}

View File

@ -21,6 +21,7 @@ class FormItem extends AbstractType
{
public string|int $id;
public string|int|NULL $mal_id;
public string|int|NULL $anilist_id;
public ?FormItemData $data;
public function setData(mixed $value): void