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:
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
Original file line number Diff line number Diff line change 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 >
557557 <PossiblyNullPropertyAssignmentValue occurrences =" 1" >
558558 <code >$tmp-> expr</code >
559559 </PossiblyNullPropertyAssignmentValue >
560- <RedundantCondition occurrences =" 1" >
560+ <RedundantConditionGivenDocblockType occurrences =" 1" >
561561 <code >$token-> value === ','</code >
562- </RedundantCondition >
562+ </RedundantConditionGivenDocblockType >
563563 </file >
564564 <file src =" src/Components/UnionKeyword.php" >
565565 <MoreSpecificImplementedParamType occurrences =" 1" >
12621262 <PossiblyInvalidIterator occurrences =" 1" >
12631263 <code >$this-> options['formats']</code >
12641264 </PossiblyInvalidIterator >
1265- <RedundantCondition occurrences =" 1" >
1265+ <RedundantConditionGivenDocblockType occurrences =" 1" >
12661266 <code >$curr-> type === Token::TYPE_KEYWORD</code >
1267- </RedundantCondition >
1267+ </RedundantConditionGivenDocblockType >
12681268 </file >
12691269 <file src =" src/Utils/Misc.php" >
12701270 <DocblockTypeContradiction occurrences =" 1" >
Original file line number Diff line number Diff line change 1212use function is_array ;
1313use function is_int ;
1414use function is_numeric ;
15- use function is_string ;
1615use function str_replace ;
1716use function str_starts_with ;
1817use 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
You can’t perform that action at this time.
0 commit comments