Skip to content

Commit 0e99dec

Browse files
committed
Fix wrong type hint
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 2029acc commit 0e99dec

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
@@ -570,11 +570,6 @@ parameters:
570570
count: 1
571571
path: src/Statement.php
572572

573-
-
574-
message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Component and null will always evaluate to false\\.$#"
575-
count: 1
576-
path: src/Statement.php
577-
578573
-
579574
message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#"
580575
count: 1

psalm-baseline.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -932,9 +932,6 @@
932932
</UnsupportedPropertyReferenceUsage>
933933
</file>
934934
<file src="src/Statement.php">
935-
<DocblockTypeContradiction>
936-
<code>$class === null</code>
937-
</DocblockTypeContradiction>
938935
<InvalidArgument>
939936
<code>$built[$field]</code>
940937
<code><![CDATA[$parsedClauses[$token->value]]]></code>
@@ -968,9 +965,6 @@
968965
<PossiblyUnusedReturnValue>
969966
<code>bool</code>
970967
</PossiblyUnusedReturnValue>
971-
<RedundantConditionGivenDocblockType>
972-
<code>$class !== null</code>
973-
</RedundantConditionGivenDocblockType>
974968
<TypeDoesNotContainType>
975969
<code>count($clauses) === 0</code>
976970
</TypeDoesNotContainType>

src/Statement.php

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

0 commit comments

Comments
 (0)