Skip to content

Commit

Permalink
Fix PHPStan in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 6, 2024
1 parent 03acf1f commit 4edf0f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions phpstan.tests.neon
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ parameters:
-
message: '#Undefined variable: \$this#'
path: tests/lib/Transfer/Output/Visitor/Integration

-
message: "#Offset 'db' does not exist on array#"
path: tests/lib/Persistence/Doctrine/DatabaseTrait.php
4 changes: 1 addition & 3 deletions tests/lib/Utils/DateTimeUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ public function testGetTimeZoneList(): void

self::assertNotEmpty($timeZones);

foreach ($timeZones as $continent => $innerTimeZones) {
self::assertIsString($continent);
self::assertIsArray($innerTimeZones);
foreach ($timeZones as $innerTimeZones) {
self::assertNotEmpty($innerTimeZones);
}
}
Expand Down

0 comments on commit 4edf0f3

Please sign in to comment.