File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ parameters:
35
35
count : 1
36
36
path : src/Components/AlterOperation.php
37
37
38
+ -
39
+ message : " #^Result of && is always true\\ .$#"
40
+ count : 1
41
+ path : src/Components/AlterOperation.php
42
+
38
43
-
39
44
message : " #^array\\ <PhpMyAdmin\\\\ SqlParser\\\\ Token\\ >\\ |string does not accept PhpMyAdmin\\\\ SqlParser\\\\ Token\\ .$#"
40
45
count : 3
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <files psalm-version =" 4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb " >
2
+ <files psalm-version =" 4.19.0@a2ad69ae4f5ab1f7d225a8dc4e2ec2d9415ed599 " >
3
3
<file src =" src/Component.php" >
4
4
<MixedReturnStatement occurrences =" 1" >
5
5
<code >static::build($this)</code >
557
557
<PossiblyNullPropertyAssignmentValue occurrences =" 1" >
558
558
<code >$tmp-> expr</code >
559
559
</PossiblyNullPropertyAssignmentValue >
560
- <RedundantCondition occurrences =" 1" >
560
+ <RedundantConditionGivenDocblockType occurrences =" 1" >
561
561
<code >$token-> value === ','</code >
562
- </RedundantCondition >
562
+ </RedundantConditionGivenDocblockType >
563
563
</file >
564
564
<file src =" src/Components/UnionKeyword.php" >
565
565
<MoreSpecificImplementedParamType occurrences =" 1" >
1262
1262
<PossiblyInvalidIterator occurrences =" 1" >
1263
1263
<code >$this-> options['formats']</code >
1264
1264
</PossiblyInvalidIterator >
1265
- <RedundantCondition occurrences =" 1" >
1265
+ <RedundantConditionGivenDocblockType occurrences =" 1" >
1266
1266
<code >$curr-> type === Token::TYPE_KEYWORD</code >
1267
- </RedundantCondition >
1267
+ </RedundantConditionGivenDocblockType >
1268
1268
</file >
1269
1269
<file src =" src/Utils/Misc.php" >
1270
1270
<DocblockTypeContradiction occurrences =" 1" >
Original file line number Diff line number Diff line change 12
12
use function is_array ;
13
13
use function is_int ;
14
14
use function is_numeric ;
15
- use function is_string ;
16
15
use function str_replace ;
17
16
use function str_starts_with ;
18
17
use function strlen ;
@@ -685,7 +684,7 @@ public static function setMode($mode = self::SQL_MODE_NONE)
685
684
}
686
685
687
686
static ::$ MODE = self ::SQL_MODE_NONE ;
688
- if (! is_string ( $ mode ) || $ mode === '' ) {
687
+ if ($ mode === '' ) {
689
688
return ;
690
689
}
691
690
You can’t perform that action at this time.
0 commit comments