diff --git a/app/Models/Feed.php b/app/Models/Feed.php index f694c1a..6b34237 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -16,7 +16,7 @@ * @property string $url * @property string $type * @property string $provider - * @property int $language_id + * @property int|null $language_id * @property Language|null $language * @property string $description * @property array $settings diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index f34b7da..fb3f0fd 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -60,12 +60,6 @@ parameters: count: 2 path: tests/Unit/Models/FeedTest.php - - - message: '#^Right side of \|\| is always true\.$#' - identifier: booleanOr.rightAlwaysTrue - count: 1 - path: tests/Unit/Models/FeedTest.php - - message: '#^Access to an undefined property App\\Models\\PlatformChannel\:\:\$pivot\.$#' identifier: property.notFound diff --git a/tests/Unit/Models/FeedTest.php b/tests/Unit/Models/FeedTest.php index da959f8..6c4029f 100644 --- a/tests/Unit/Models/FeedTest.php +++ b/tests/Unit/Models/FeedTest.php @@ -225,8 +225,7 @@ public function test_feed_creation_with_factory(): void $this->assertIsString($feed->name); $this->assertIsString($feed->url); $this->assertIsString($feed->type); - // Language ID may be null as it's nullable in the database - $this->assertTrue($feed->language_id === null || is_int($feed->language_id)); + $this->assertNull($feed->language_id); $this->assertIsBool($feed->is_active); $this->assertIsArray($feed->settings); }