Skip to content

Commit

Permalink
Update 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 Feb 24, 2021
1 parent c52bb2f commit 8fa2e36
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Expand Up @@ -1830,11 +1830,6 @@ parameters:
count: 4
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
Expand Down
34 changes: 20 additions & 14 deletions psalm-baseline.xml
Expand Up @@ -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">
Expand Down Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand All @@ -714,7 +716,6 @@
<code>$result</code>
<code>$result</code>
<code>$result</code>
<code>$result</code>
</MoreSpecificImplementedParamType>
<ParamNameMismatch occurrences="7">
<code>$databaseName</code>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 8fa2e36

Please sign in to comment.