Skip to content

Commit c8a83aa

Browse files
committed
Update baselines
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 603a64a commit c8a83aa

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

phpstan-baseline.neon

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,16 @@ parameters:
505505
count: 1
506506
path: src/Exceptions/ParserException.php
507507

508+
-
509+
message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#"
510+
count: 2
511+
path: src/Lexer.php
512+
513+
-
514+
message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#"
515+
count: 3
516+
path: src/Lexer.php
517+
508518
-
509519
message: "#^Parameter \\#1 \\$msg \\(string\\) of method PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:error\\(\\) should be compatible with parameter \\$error \\(Exception\\) of method PhpMyAdmin\\\\SqlParser\\\\Core\\:\\:error\\(\\)$#"
510520
count: 1
@@ -1125,8 +1135,18 @@ parameters:
11251135
count: 2
11261136
path: tests/Components/CreateDefinitionTest.php
11271137

1138+
-
1139+
message: "#^Cannot access property \\$alias on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#"
1140+
count: 2
1141+
path: tests/Components/ExpressionTest.php
1142+
11281143
-
11291144
message: "#^Cannot access property \\$expr on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#"
1145+
count: 4
1146+
path: tests/Components/ExpressionTest.php
1147+
1148+
-
1149+
message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#"
11301150
count: 2
11311151
path: tests/Components/ExpressionTest.php
11321152

psalm-baseline.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,12 @@
774774
<PossiblyNullPropertyAssignmentValue occurrences="1">
775775
<code>null</code>
776776
</PossiblyNullPropertyAssignmentValue>
777+
<PossiblyNullPropertyFetch occurrences="4">
778+
<code>$next-&gt;type</code>
779+
<code>$next-&gt;value</code>
780+
<code>$next-&gt;value</code>
781+
<code>$next-&gt;value</code>
782+
</PossiblyNullPropertyFetch>
777783
<RedundantCondition occurrences="1">
778784
<code>USE_UTF_STRINGS</code>
779785
</RedundantCondition>
@@ -1017,11 +1023,6 @@
10171023
<PropertyNotSetInConstructor occurrences="1">
10181024
<code>$statementAlias</code>
10191025
</PropertyNotSetInConstructor>
1020-
<UnusedVariable occurrences="3">
1021-
<code>$connectionToken</code>
1022-
<code>$currToken</code>
1023-
<code>$forToken</code>
1024-
</UnusedVariable>
10251026
</file>
10261027
<file src="src/Statements/InsertStatement.php">
10271028
<PossiblyNullOperand occurrences="2">
@@ -1522,9 +1523,15 @@
15221523
</UndefinedMethod>
15231524
</file>
15241525
<file src="tests/Components/ExpressionTest.php">
1525-
<PossiblyNullPropertyFetch occurrences="2">
1526+
<PossiblyNullPropertyFetch occurrences="8">
1527+
<code>$component-&gt;alias</code>
1528+
<code>$component-&gt;alias</code>
1529+
<code>$component-&gt;expr</code>
1530+
<code>$component-&gt;expr</code>
15261531
<code>$component-&gt;expr</code>
15271532
<code>$component-&gt;expr</code>
1533+
<code>$component-&gt;table</code>
1534+
<code>$component-&gt;table</code>
15281535
</PossiblyNullPropertyFetch>
15291536
</file>
15301537
<file src="tests/Components/JoinKeywordTest.php">

0 commit comments

Comments
 (0)