diff --git a/phpstan.tests.neon b/phpstan.tests.neon index 661bdfa59..380327450 100644 --- a/phpstan.tests.neon +++ b/phpstan.tests.neon @@ -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 diff --git a/tests/lib/Utils/DateTimeUtilsTest.php b/tests/lib/Utils/DateTimeUtilsTest.php index 691a8c823..0243939b2 100644 --- a/tests/lib/Utils/DateTimeUtilsTest.php +++ b/tests/lib/Utils/DateTimeUtilsTest.php @@ -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); } }