From da15c45fd92fa2a3da47511c8012f58502acef70 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 21 Apr 2020 20:09:37 -0400 Subject: [PATCH] Fix tests --- app/views/history/anime.php | 1 - src/AnimeClient/Types/Anime.php | 6 +++--- tests/AnimeClient/DispatcherTest.php | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/history/anime.php b/app/views/history/anime.php index 826e267e..4d12b7bf 100644 --- a/app/views/history/anime.php +++ b/app/views/history/anime.php @@ -15,6 +15,5 @@ -
diff --git a/src/AnimeClient/Types/Anime.php b/src/AnimeClient/Types/Anime.php index c1c95710..b848669c 100644 --- a/src/AnimeClient/Types/Anime.php +++ b/src/AnimeClient/Types/Anime.php @@ -25,7 +25,7 @@ class Anime extends AbstractType { /** * @var string */ - public string $age_rating = ''; + public ?string $age_rating = ''; /** * @var string @@ -53,9 +53,9 @@ class Anime extends AbstractType { public array $genres = []; /** - * @var string + * @var string|int */ - public string $id = ''; + public $id = ''; /** * @var array diff --git a/tests/AnimeClient/DispatcherTest.php b/tests/AnimeClient/DispatcherTest.php index 3f16fd78..91832a1d 100644 --- a/tests/AnimeClient/DispatcherTest.php +++ b/tests/AnimeClient/DispatcherTest.php @@ -216,6 +216,7 @@ class DispatcherTest extends AnimeClientTestCase { 'settings' => Controller\Settings::class, 'user' => Controller\User::class, 'images' => Controller\Images::class, + 'history' => Controller\History::class, ]; return [