Skip to content

Commit 83c8738

Browse files
committed
Fix different error formats for arrayValues.list
1 parent 823f364 commit 83c8738

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

tests/system/Database/Live/MetadataTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testListTablesUnconstrainedByPrefixReturnsAllTables(): void
101101
$expectedTables[] = 'tmp_widgets';
102102

103103
sort($tables);
104-
$this->assertSame($expectedTables, array_values($tables));
104+
$this->assertSame($expectedTables, $tables);
105105
} finally {
106106
$this->dropExtraneousTable();
107107
}
@@ -117,7 +117,7 @@ public function testListTablesConstrainedByPrefixReturnsOnlyTablesWithMatchingPr
117117
$this->assertNotSame([], $tables);
118118

119119
sort($tables);
120-
$this->assertSame($this->expectedTables, array_values($tables));
120+
$this->assertSame($this->expectedTables, $tables);
121121
} finally {
122122
$this->dropExtraneousTable();
123123
}
@@ -138,7 +138,7 @@ public function testListTablesConstrainedByExtraneousPrefixReturnsOnlyTheExtrane
138138
$this->assertNotSame([], $tables);
139139

140140
sort($tables);
141-
$this->assertSame(['tmp_widgets'], array_values($tables));
141+
$this->assertSame(['tmp_widgets'], $tables);
142142
} finally {
143143
$this->db->setPrefix($oldPrefix);
144144
$this->dropExtraneousTable();

utils/phpstan-baseline/arrayValues.list.neon

Lines changed: 0 additions & 8 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
includes:
22
- argument.type.neon
3-
- arrayValues.list.neon
43
- assign.propertyType.neon
54
- booleanAnd.leftNotBoolean.neon
65
- booleanAnd.rightAlwaysTrue.neon

0 commit comments

Comments
 (0)