Skip to content

Commit 86eea3a

Browse files
committed
Merge branch 'QA_5_2'
2 parents fb2a94c + bb00f42 commit 86eea3a

4 files changed

Lines changed: 6 additions & 16 deletions

File tree

libraries/classes/Tracker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ public static function handleQuery($query): void
950950
" AND `db_name` = '" . $dbi->escapeString($dbname ?? '') . "' " .
951951
" AND `table_name` = '"
952952
. $dbi->escapeString($result['tablename']) . "' " .
953-
" AND `version` = '" . $dbi->escapeString($version ?? '') . "' ";
953+
" AND `version` = '" . $dbi->escapeString((string) $version) . "' ";
954954

955955
$dbi->queryAsControlUser($sqlQuery);
956956
}

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8370,11 +8370,6 @@ parameters:
83708370
count: 1
83718371
path: libraries/classes/Tracker.php
83728372

8373-
-
8374-
message: "#^Variable \\$version on left side of \\?\\? always exists and is not nullable\\.$#"
8375-
count: 1
8376-
path: libraries/classes/Tracker.php
8377-
83788373
-
83798374
message: "#^Cannot access offset 'COLUMNS' on mixed\\.$#"
83808375
count: 1

psalm-baseline.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13412,8 +13412,7 @@
1341213412
</UnevaluatedCode>
1341313413
</file>
1341413414
<file src="libraries/classes/Tracker.php">
13415-
<DocblockTypeContradiction occurrences="4">
13416-
<code>''</code>
13415+
<DocblockTypeContradiction occurrences="3">
1341713416
<code>null</code>
1341813417
<code>null</code>
1341913418
<code>null</code>
@@ -13463,9 +13462,6 @@
1346313462
<code>mb_strpos($logEntry, "\n")</code>
1346413463
<code>mb_strpos($logEntry, "\n")</code>
1346513464
</PossiblyFalseOperand>
13466-
<PossiblyInvalidArgument occurrences="1">
13467-
<code>$version ?? ''</code>
13468-
</PossiblyInvalidArgument>
1346913465
<PossiblyInvalidPropertyFetch occurrences="4">
1347013466
<code>$statement-&gt;body[2]-&gt;value</code>
1347113467
<code>$statement-&gt;body[3]-&gt;value</code>
@@ -13481,10 +13477,9 @@
1348113477
<RedundantCondition occurrences="1">
1348213478
<code>$dbname</code>
1348313479
</RedundantCondition>
13484-
<RedundantConditionGivenDocblockType occurrences="4">
13480+
<RedundantConditionGivenDocblockType occurrences="3">
1348513481
<code>$statement-&gt;name !== null</code>
1348613482
<code>$statement-&gt;name !== null</code>
13487-
<code>$version</code>
1348813483
<code>isset($statement-&gt;options)</code>
1348913484
</RedundantConditionGivenDocblockType>
1349013485
<TypeDoesNotContainNull occurrences="1">

test/selenium/Table/CreateTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testCreateTable(): void
6565
$column_dropdown_details = [
6666
'field_0_6' => 'UNSIGNED',
6767
'field_1_2' => 'VARCHAR',
68-
'field_1_5' => 'utf8_general_ci',
68+
'field_1_5' => 'utf8mb4_general_ci',
6969
'field_1_4' => 'As defined:',
7070
];
7171

@@ -83,7 +83,7 @@ public function testCreateTable(): void
8383
$this->moveto($ele);
8484
// post
8585
$ele->click();
86-
$this->waitForElement('cssSelector', 'li.last.table');
86+
$this->waitForElement('cssSelector', 'li.last.nav_node_table');
8787

8888
$this->waitAjax();
8989

@@ -162,7 +162,7 @@ private function tableStructureAssertions(): void
162162
);
163163

164164
$this->assertEquals(
165-
'utf8_general_ci',
165+
'utf8mb4_general_ci',
166166
$this->getCellByTableId('tablestructure', 2, 5)
167167
);
168168

0 commit comments

Comments
 (0)