25 - Fix PHPStan baseline discrepancy between local and CI
Some checks failed
CI / ci (push) Failing after 5m37s

This commit is contained in:
myrmidex 2026-03-08 14:45:24 +01:00
parent 675802e8e5
commit a448c54e73
3 changed files with 2 additions and 9 deletions

View file

@ -16,7 +16,7 @@
* @property string $url * @property string $url
* @property string $type * @property string $type
* @property string $provider * @property string $provider
* @property int $language_id * @property int|null $language_id
* @property Language|null $language * @property Language|null $language
* @property string $description * @property string $description
* @property array<string, mixed> $settings * @property array<string, mixed> $settings

View file

@ -60,12 +60,6 @@ parameters:
count: 2 count: 2
path: tests/Unit/Models/FeedTest.php 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\.$#' message: '#^Access to an undefined property App\\Models\\PlatformChannel\:\:\$pivot\.$#'
identifier: property.notFound identifier: property.notFound

View file

@ -225,8 +225,7 @@ public function test_feed_creation_with_factory(): void
$this->assertIsString($feed->name); $this->assertIsString($feed->name);
$this->assertIsString($feed->url); $this->assertIsString($feed->url);
$this->assertIsString($feed->type); $this->assertIsString($feed->type);
// Language ID may be null as it's nullable in the database $this->assertNull($feed->language_id);
$this->assertTrue($feed->language_id === null || is_int($feed->language_id));
$this->assertIsBool($feed->is_active); $this->assertIsBool($feed->is_active);
$this->assertIsArray($feed->settings); $this->assertIsArray($feed->settings);
} }