Skip to content

Commit db2f6e6

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2 parents 31d862d + 98187ba commit db2f6e6

6 files changed

Lines changed: 13 additions & 29 deletions

File tree

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ phpMyAdmin - ChangeLog
3232

3333
5.1.3 (not yet released)
3434
- issue #17308 Fix broken pagination links in the navigation sidebar
35+
- issue #17331 Fix MariaDB has no support for system variable "disabled_storage_engines"
36+
- issue #17315 Fix unsupported operand types in Results.php when running "SHOW PROCESSLIST" SQL query
3537

3638
5.1.2 (2022-01-20)
3739
- issue Replaced MySQL documentation redirected links

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"php-webdriver/webdriver": "^1.11",
9494
"phpmyadmin/coding-standard": "^3.0.0",
9595
"phpstan/extension-installer": "^1.1",
96-
"phpstan/phpstan": "^1.3",
96+
"phpstan/phpstan": "^1.4.5",
9797
"phpstan/phpstan-phpunit": "^1.0",
9898
"phpstan/phpstan-webmozart-assert": "^1.0",
9999
"phpunit/phpunit": "^8.5 || ^9.5",
@@ -102,7 +102,7 @@
102102
"roave/security-advisories": "dev-latest",
103103
"symfony/console": "^5.2.3",
104104
"tecnickcom/tcpdf": "^6.4.4",
105-
"vimeo/psalm": "^4.17"
105+
"vimeo/psalm": "^4.19"
106106
},
107107
"extra": {
108108
"branch-alias": {

libraries/classes/Display/Results.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ private function getTableBody(
22422242
$copyUrl = null;
22432243
$copyString = null;
22442244
$editUrl = null;
2245-
$editCopyUrlParams = null;
2245+
$editCopyUrlParams = [];
22462246
$delUrlParams = null;
22472247

22482248
// 1.2 Defines the URLs for the modify/delete link(s)
@@ -2937,6 +2937,12 @@ private function getRepeatingHeaders(
29372937
* @param string $urlSqlQuery the analyzed sql query
29382938
*
29392939
* @return array<int,string|array<string, bool|string>>
2940+
* @phpstan-return array{string, string, string, string,
2941+
* array{
2942+
* db: string, table: string, where_clause: string,
2943+
* clause_is_unique: bool, sql_query: string, goto: string
2944+
* }
2945+
* }
29402946
*/
29412947
private function getModifiedLinks(
29422948
$whereClause,

libraries/classes/StorageEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function getStorageEngines()
109109

110110
if ($storage_engines == null) {
111111
$storage_engines = $dbi->fetchResult('SHOW STORAGE ENGINES', 'Engine');
112-
if ($dbi->getVersion() >= 50708) {
112+
if (! $dbi->isMariaDB() && $dbi->getVersion() >= 50708) {
113113
$disabled = (string) SessionCache::get(
114114
'disabled_storage_engines',
115115
/** @return mixed|false */

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,16 +2865,6 @@ parameters:
28652865
count: 1
28662866
path: libraries/classes/Display/Results.php
28672867

2868-
-
2869-
message: "#^Binary operation \"\\+\" between array\\<string, bool\\|string\\>\\|string\\|null and array\\{default_action\\: 'insert'\\} results in an error\\.$#"
2870-
count: 3
2871-
path: libraries/classes/Display/Results.php
2872-
2873-
-
2874-
message: "#^Binary operation \"\\+\" between array\\<string, bool\\|string\\>\\|string\\|null and array\\{default_action\\: 'update'\\} results in an error\\.$#"
2875-
count: 3
2876-
path: libraries/classes/Display/Results.php
2877-
28782868
-
28792869
message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#"
28802870
count: 2

psalm-baseline.xml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5990,28 +5990,14 @@
59905990
<code>$this-&gt;properties['num_rows'] &gt; 0 ? $this-&gt;properties['num_rows'] - 1 : 0</code>
59915991
<code>$this-&gt;properties['num_rows'] &gt; 0 ? $this-&gt;properties['num_rows'] - 1 : 0</code>
59925992
</PossiblyInvalidArgument>
5993-
<PossiblyInvalidOperand occurrences="6">
5994-
<code>$editCopyUrlParams</code>
5995-
<code>$editCopyUrlParams</code>
5996-
<code>$editCopyUrlParams</code>
5997-
<code>$editCopyUrlParams</code>
5998-
<code>$editCopyUrlParams</code>
5999-
<code>$editCopyUrlParams</code>
6000-
</PossiblyInvalidOperand>
60015993
<PossiblyNullArgument occurrences="1">
60025994
<code>$colVisibCurrent</code>
60035995
</PossiblyNullArgument>
60045996
<PossiblyNullArrayAccess occurrences="1">
60055997
<code>$firstStatement-&gt;order[$key]</code>
60065998
</PossiblyNullArrayAccess>
6007-
<PossiblyNullOperand occurrences="8">
5999+
<PossiblyNullOperand occurrences="2">
60086000
<code>$dispval</code>
6009-
<code>$editCopyUrlParams</code>
6010-
<code>$editCopyUrlParams</code>
6011-
<code>$editCopyUrlParams</code>
6012-
<code>$editCopyUrlParams</code>
6013-
<code>$editCopyUrlParams</code>
6014-
<code>$editCopyUrlParams</code>
60156001
<code>$this-&gt;getSortedColumnMessage($dtResult, $sortExpressionNoDirection[$i])</code>
60166002
</PossiblyNullOperand>
60176003
<RedundantCast occurrences="3">

0 commit comments

Comments
 (0)