Skip to content

Commit 0deffe5

Browse files
committed
Update PHPStan/Psalm baselines
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent 1aa400f commit 0deffe5

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ parameters:
3535
count: 1
3636
path: src/Components/AlterOperation.php
3737

38+
-
39+
message: "#^Result of && is always true\\.$#"
40+
count: 1
41+
path: src/Components/AlterOperation.php
42+
3843
-
3944
message: "#^array\\<PhpMyAdmin\\\\SqlParser\\\\Token\\>\\|string does not accept PhpMyAdmin\\\\SqlParser\\\\Token\\.$#"
4045
count: 3

psalm-baseline.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb">
2+
<files psalm-version="4.19.0@a2ad69ae4f5ab1f7d225a8dc4e2ec2d9415ed599">
33
<file src="src/Component.php">
44
<MixedReturnStatement occurrences="1">
55
<code>static::build($this)</code>
@@ -557,9 +557,9 @@
557557
<PossiblyNullPropertyAssignmentValue occurrences="1">
558558
<code>$tmp-&gt;expr</code>
559559
</PossiblyNullPropertyAssignmentValue>
560-
<RedundantCondition occurrences="1">
560+
<RedundantConditionGivenDocblockType occurrences="1">
561561
<code>$token-&gt;value === ','</code>
562-
</RedundantCondition>
562+
</RedundantConditionGivenDocblockType>
563563
</file>
564564
<file src="src/Components/UnionKeyword.php">
565565
<MoreSpecificImplementedParamType occurrences="1">
@@ -1262,9 +1262,9 @@
12621262
<PossiblyInvalidIterator occurrences="1">
12631263
<code>$this-&gt;options['formats']</code>
12641264
</PossiblyInvalidIterator>
1265-
<RedundantCondition occurrences="1">
1265+
<RedundantConditionGivenDocblockType occurrences="1">
12661266
<code>$curr-&gt;type === Token::TYPE_KEYWORD</code>
1267-
</RedundantCondition>
1267+
</RedundantConditionGivenDocblockType>
12681268
</file>
12691269
<file src="src/Utils/Misc.php">
12701270
<DocblockTypeContradiction occurrences="1">

src/Context.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use function is_array;
1313
use function is_int;
1414
use function is_numeric;
15-
use function is_string;
1615
use function str_replace;
1716
use function str_starts_with;
1817
use function strlen;
@@ -685,7 +684,7 @@ public static function setMode($mode = self::SQL_MODE_NONE)
685684
}
686685

687686
static::$MODE = self::SQL_MODE_NONE;
688-
if (! is_string($mode) || $mode === '') {
687+
if ($mode === '') {
689688
return;
690689
}
691690

0 commit comments

Comments
 (0)