Update psalm and phpstan baselines

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-04-28 00:02:20 +02:00
parent 857a941069
commit 07b348be78
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 7 additions and 55 deletions

View File

@ -205,11 +205,6 @@ parameters:
count: 1
path: libraries/classes/Controllers/Server/CollationsController.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Controllers/Server/PrivilegesController.php
-
message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\|null given\\.$#"
count: 7
@ -1115,31 +1110,11 @@ parameters:
count: 1
path: libraries/classes/Plugins/Auth/AuthenticationSignon.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportCsv.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportHtmlword.php
-
message: "#^Method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportJson\\:\\:encode\\(\\) should return string but returns string\\|false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportJson.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportOds.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportOdt.php
-
message: "#^Argument of an invalid type array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj supplied for foreach, only iterables are supported\\.$#"
count: 2
@ -1175,31 +1150,11 @@ parameters:
count: 1
path: libraries/classes/Plugins/Export/ExportSql.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportSql.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportTexytext.php
-
message: "#^Strict comparison using \\=\\=\\= between array and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportXml.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportXml.php
-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Plugins/Export/ExportYaml.php
-
message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
@ -1970,11 +1925,6 @@ parameters:
count: 1
path: libraries/classes/Server/Privileges.php
-
message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#"
count: 1
path: libraries/classes/Server/Privileges.php
-
message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, string\\|null given\\.$#"
count: 1

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.7.0@d4377c0baf3ffbf0b1ec6998e8d1be2a40971005">
<files psalm-version="4.7.1@cd53e047a58f71f646dd6bf45476076ab07b5d44">
<file src="libraries/classes/Bookmark.php">
<RedundantCastGivenDocblockType occurrences="1">
<code>(int) $this-&gt;id</code>
@ -2306,6 +2306,12 @@
</TypeDoesNotContainType>
</file>
<file src="libraries/classes/Replication.php">
<LessSpecificReturnStatement occurrences="1">
<code>$output</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType occurrences="1">
<code>array{'File'?: string, 'Position'?: string}</code>
</MoreSpecificReturnType>
<PossiblyNullArgument occurrences="1">
<code>$host</code>
</PossiblyNullArgument>
@ -2559,10 +2565,6 @@
</TypeDoesNotContainType>
</file>
<file src="libraries/classes/Table/ColumnsDefinition.php">
<PossiblyFalseArgument occurrences="2">
<code>$form_params['db']</code>
<code>$form_params['table']</code>
</PossiblyFalseArgument>
<PossiblyUndefinedVariable occurrences="1">
<code>$submit_fulltext</code>
</PossiblyUndefinedVariable>