25 - Fix PHPStan baseline discrepancy between local and CI
Some checks failed
CI / ci (push) Failing after 5m37s
Some checks failed
CI / ci (push) Failing after 5m37s
This commit is contained in:
parent
675802e8e5
commit
a448c54e73
3 changed files with 2 additions and 9 deletions
|
|
@ -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<string, mixed> $settings
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue