Skip to content

Commit f9f1e53

Browse files
committed
Fix wrong type hint
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 51140e4 commit f9f1e53

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,6 @@ parameters:
530530
count: 1
531531
path: src/Statement.php
532532

533-
-
534-
message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Component and null will always evaluate to false\\.$#"
535-
count: 1
536-
path: src/Statement.php
537-
538533
-
539534
message: "#^Argument of an invalid type array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\AlterOperation\\>\\|null supplied for foreach, only iterables are supported\\.$#"
540535
count: 1

psalm-baseline.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -898,9 +898,6 @@
898898
</UnsupportedPropertyReferenceUsage>
899899
</file>
900900
<file src="src/Statement.php">
901-
<DocblockTypeContradiction>
902-
<code>$class === null</code>
903-
</DocblockTypeContradiction>
904901
<InvalidArgument>
905902
<code>$built[$field]</code>
906903
<code><![CDATA[$parsedClauses[$token->value]]]></code>
@@ -934,9 +931,6 @@
934931
<PossiblyUnusedReturnValue>
935932
<code>bool</code>
936933
</PossiblyUnusedReturnValue>
937-
<RedundantConditionGivenDocblockType>
938-
<code>$class !== null</code>
939-
</RedundantConditionGivenDocblockType>
940934
<UnusedForeachValue>
941935
<code>$index</code>
942936
</UnusedForeachValue>

src/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public function parse(Parser $parser, TokensList $list): void
298298
/**
299299
* The name of the class that is used for parsing.
300300
*
301-
* @var Component
301+
* @var Component|null
302302
*/
303303
$class = null;
304304

0 commit comments

Comments
 (0)