Skip to content

Commit 76d035a

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents 2b09971 + 815ec67 commit 76d035a

4 files changed

Lines changed: 5 additions & 10 deletions

File tree

libraries/classes/ConfigStorage/Relation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public function getForeigners(string $db, string $table, string $column = '', st
431431
if (($source === 'both' || $source === 'foreign') && strlen($table) > 0) {
432432
$tableObj = new Table($table, $db, $this->dbi);
433433
$showCreateTable = $tableObj->showCreate();
434-
if ($showCreateTable) {
434+
if ($showCreateTable !== '') {
435435
$parser = new Parser($showCreateTable);
436436
$stmt = $parser->statements[0];
437437
$foreign['foreign_keys_data'] = [];

libraries/classes/Controllers/Table/Structure/PartitioningController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __invoke(ServerRequest $request): void
8484
private function extractPartitionDetails(): array|null
8585
{
8686
$createTable = (new Table($GLOBALS['table'], $GLOBALS['db'], $this->dbi))->showCreate();
87-
if (! $createTable) {
87+
if ($createTable === '') {
8888
return null;
8989
}
9090

libraries/classes/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2428,7 +2428,7 @@ public function getColumnGenerationExpression(string|null $column = null): array
24282428
}
24292429

24302430
$createTable = $this->showCreate();
2431-
if (! $createTable) {
2431+
if ($createTable === '') {
24322432
return false;
24332433
}
24342434

phpstan-baseline.neon

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ parameters:
16521652

16531653
-
16541654
message: "#^Only booleans are allowed in an if condition, string given\\.$#"
1655-
count: 6
1655+
count: 5
16561656
path: libraries/classes/ConfigStorage/Relation.php
16571657

16581658
-
@@ -9205,11 +9205,6 @@ parameters:
92059205
count: 1
92069206
path: libraries/classes/Controllers/Table/Structure/PartitioningController.php
92079207

9208-
-
9209-
message: "#^Only booleans are allowed in a negated boolean, string given\\.$#"
9210-
count: 1
9211-
path: libraries/classes/Controllers/Table/Structure/PartitioningController.php
9212-
92139208
-
92149209
message: "#^Parameter \\#1 \\$dbname of method PhpMyAdmin\\\\DatabaseInterface\\:\\:selectDb\\(\\) expects PhpMyAdmin\\\\Identifiers\\\\DatabaseName\\|string, mixed given\\.$#"
92159210
count: 1
@@ -25462,7 +25457,7 @@ parameters:
2546225457

2546325458
-
2546425459
message: "#^Only booleans are allowed in a negated boolean, string given\\.$#"
25465-
count: 4
25460+
count: 3
2546625461
path: libraries/classes/Table.php
2546725462

2546825463
-

0 commit comments

Comments
 (0)