Skip to content

Commit 5ac8e6f

Browse files
kamil-tekielawilliamdes
authored andcommitted
Fix wrong property type
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
1 parent 963cfb0 commit 5ac8e6f

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

phpstan-baseline.neon

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -781,17 +781,12 @@ parameters:
781781
path: src/Statements/RenameStatement.php
782782

783783
-
784-
message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\:\\:build\\(\\) expects array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\>, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d given\\.$#"
784+
message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\:\\:build\\(\\) expects array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\>, array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\> given\\.$#"
785785
count: 1
786786
path: src/Statements/ReplaceStatement.php
787787

788788
-
789-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d given\\.$#"
790-
count: 1
791-
path: src/Statements/ReplaceStatement.php
792-
793-
-
794-
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ReplaceStatement\\:\\:\\$values \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\|null\\) does not accept array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\>\\.$#"
789+
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ReplaceStatement\\:\\:\\$values \\(array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\>\\|null\\) does not accept array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\>\\.$#"
795790
count: 1
796791
path: src/Statements/ReplaceStatement.php
797792

psalm-baseline.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,7 @@
10741074
</InvalidArgument>
10751075
</file>
10761076
<file src="src/Statements/ReplaceStatement.php">
1077-
<InvalidArgument occurrences="2">
1078-
<code>$this-&gt;values</code>
1077+
<InvalidArgument occurrences="1">
10791078
<code>$this-&gt;values</code>
10801079
</InvalidArgument>
10811080
<InvalidPropertyAssignmentValue occurrences="1">

src/Statements/ReplaceStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ReplaceStatement extends Statement
6161
/**
6262
* Values to be replaced.
6363
*
64-
* @var Array2d|null
64+
* @var Array2d[]|null
6565
*/
6666
public $values;
6767

0 commit comments

Comments
 (0)