Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2021-02-23 18:53:23 +0300
committerWilliam Desportes <williamdes@wdes.fr>2021-02-25 01:30:00 +0300
commit8fa2e36f5c71833a9d53e05d5a084b76983ed0ab (patch)
tree124cc8be4ebdc18ce990e5293820d2e3d20c2032
parentc52bb2fb34d6c9531e32235662170f0143014bcd (diff)
Update baselines
Signed-off-by: William Desportes <williamdes@wdes.fr>
-rw-r--r--phpstan-baseline.neon5
-rw-r--r--psalm-baseline.xml34
2 files changed, 20 insertions, 19 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 49fc4bff67..1cfc2aa806 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -1831,11 +1831,6 @@ parameters:
path: libraries/classes/Plugins/Schema/Svg/TableStatsSvg.php
-
- message: "#^Cannot access property \\$type on stdClass\\|null\\.$#"
- count: 1
- path: libraries/classes/Plugins/Transformations/Abs/DateFormatTransformationsPlugin.php
-
- -
message: "#^Binary operation \"\\-\\=\" between int\\<0, max\\>\\|string\\|false and int results in an error\\.$#"
count: 1
path: libraries/classes/Plugins/Transformations/Abs/DateFormatTransformationsPlugin.php
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 66c11ed458..43b7b348da 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -485,6 +485,9 @@
<NullableReturnStatement occurrences="1">
<code>$this-&gt;dbi-&gt;fetchSingleRow($sql_query)</code>
</NullableReturnStatement>
+ <RedundantCastGivenDocblockType occurrences="1">
+ <code>(int) $fields_meta[$i]-&gt;length</code>
+ </RedundantCastGivenDocblockType>
</file>
<file src="libraries/classes/Controllers/Table/StructureController.php">
<ImplicitToStringCast occurrences="1">
@@ -538,6 +541,9 @@
<code>$dataLabel</code>
<code>$key</code>
</PossiblyFalseArgument>
+ <RedundantCastGivenDocblockType occurrences="1">
+ <code>(int) $fields_meta[$i]-&gt;length</code>
+ </RedundantCastGivenDocblockType>
</file>
<file src="libraries/classes/Core.php">
<InvalidOperand occurrences="1">
@@ -682,15 +688,11 @@
</PossiblyInvalidArrayOffset>
</file>
<file src="libraries/classes/Dbal/DbiMysqli.php">
- <ImplementedReturnTypeMismatch occurrences="2">
- <code>array|bool</code>
- <code>string|false</code>
- </ImplementedReturnTypeMismatch>
<InvalidPropertyFetch occurrences="2">
<code>$mysqli-&gt;connect_errno</code>
<code>$mysqli-&gt;connect_error</code>
</InvalidPropertyFetch>
- <MoreSpecificImplementedParamType occurrences="24">
+ <MoreSpecificImplementedParamType occurrences="23">
<code>$mysqli</code>
<code>$mysqli</code>
<code>$mysqli</code>
@@ -714,7 +716,6 @@
<code>$result</code>
<code>$result</code>
<code>$result</code>
- <code>$result</code>
</MoreSpecificImplementedParamType>
<ParamNameMismatch occurrences="7">
<code>$databaseName</code>
@@ -808,6 +809,14 @@
<code>(string) '1'</code>
<code>(string) '1'</code>
</RedundantCast>
+ <RedundantCastGivenDocblockType occurrences="6">
+ <code>(int) $meta-&gt;length</code>
+ <code>(string) $fields_meta-&gt;name</code>
+ <code>(string) $fields_meta-&gt;name</code>
+ <code>(string) $fields_meta-&gt;name</code>
+ <code>(string) $fields_meta[$i]-&gt;name</code>
+ <code>(string) $fields_meta[$i]-&gt;name</code>
+ </RedundantCastGivenDocblockType>
<TypeDoesNotContainNull occurrences="3">
<code>$column === null</code>
<code>$column === null</code>
@@ -1487,7 +1496,8 @@
<code>$view_alias</code>
<code>$view_alias</code>
</PossiblyNullArgument>
- <RedundantCastGivenDocblockType occurrences="2">
+ <RedundantCastGivenDocblockType occurrences="3">
+ <code>(int) $fields_meta[$j]-&gt;length</code>
<code>(string) $create_query</code>
<code>(string) $table</code>
</RedundantCastGivenDocblockType>
@@ -2206,9 +2216,6 @@
<PossiblyInvalidOperand occurrences="1">
<code>$timestamp</code>
</PossiblyInvalidOperand>
- <PossiblyNullPropertyFetch occurrences="1">
- <code>$meta-&gt;type</code>
- </PossiblyNullPropertyFetch>
<RedundantCastGivenDocblockType occurrences="3">
<code>(string) $buffer</code>
<code>(string) $buffer</code>
@@ -2416,9 +2423,7 @@
<PossiblyFalseReference occurrences="1">
<code>save</code>
</PossiblyFalseReference>
- <PossiblyInvalidArgument occurrences="5">
- <code>$fields_meta</code>
- <code>$fields_meta</code>
+ <PossiblyInvalidArgument occurrences="3">
<code>$result</code>
<code>$result</code>
<code>$result</code>
@@ -2693,7 +2698,8 @@
<RedundantCast occurrences="1">
<code>(string) strftime($string)</code>
</RedundantCast>
- <RedundantCastGivenDocblockType occurrences="8">
+ <RedundantCastGivenDocblockType occurrences="9">
+ <code>(int) $meta-&gt;length</code>
<code>(int) $timestamp</code>
<code>(int) $timestamp</code>
<code>(int) $timestamp</code>