Skip to content

Commit

Permalink
Update psalm and phpstan baselines
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed May 1, 2020
1 parent 7db0deb commit 037bc2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
20 changes: 0 additions & 20 deletions phpstan-baseline.neon
Expand Up @@ -375,11 +375,6 @@ parameters:
count: 6
path: libraries/classes/Controllers/Database/OperationsController.php

-
message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, null given\\.$#"
count: 1
path: libraries/classes/Controllers/Database/OperationsController.php

-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
Expand Down Expand Up @@ -475,11 +470,6 @@ parameters:
count: 1
path: libraries/classes/Controllers/Server/DatabasesController.php

-
message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, null given\\.$#"
count: 1
path: libraries/classes/Controllers/Server/DatabasesController.php

-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
count: 1
Expand Down Expand Up @@ -3660,11 +3650,6 @@ parameters:
count: 1
path: libraries/classes/Server/Privileges.php

-
message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, null given\\.$#"
count: 1
path: libraries/classes/Server/Privileges.php

-
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, \\(array\\)\\|true given\\.$#"
count: 3
Expand Down Expand Up @@ -5100,11 +5085,6 @@ parameters:
count: 1
path: test/classes/Properties/PropertyItemTest.php

-
message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, null given\\.$#"
count: 1
path: test/classes/Server/PrivilegesTest.php

-
message: "#^Parameter \\#1 \\$needle of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, bool\\|string given\\.$#"
count: 1
Expand Down
9 changes: 1 addition & 8 deletions psalm-baseline.xml
Expand Up @@ -233,9 +233,6 @@
</PossiblyNullArgument>
</file>
<file src="libraries/classes/Controllers/Database/OperationsController.php">
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
<TypeDoesNotContainType occurrences="1">
<code>$sub_part</code>
</TypeDoesNotContainType>
Expand Down Expand Up @@ -376,9 +373,6 @@
</PossiblyNullIterator>
</file>
<file src="libraries/classes/Controllers/Server/DatabasesController.php">
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
<PossiblyInvalidArgument occurrences="1">
<code>$this-&gt;dbi-&gt;getError()</code>
</PossiblyInvalidArgument>
Expand Down Expand Up @@ -2296,8 +2290,7 @@
<code>$result</code>
<code>$result</code>
</InvalidArgument>
<NullArgument occurrences="3">
<code>null</code>
<NullArgument occurrences="2">
<code>null</code>
<code>null</code>
</NullArgument>
Expand Down

0 comments on commit 037bc2a

Please sign in to comment.