Skip to content

Commit

Permalink
Fix wrong property type
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tekiela <[email protected]>
  • Loading branch information
kamil-tekiela authored and williamdes committed Jun 1, 2023
1 parent 963cfb0 commit 5ac8e6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
9 changes: 2 additions & 7 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -781,17 +781,12 @@ parameters:
path: src/Statements/RenameStatement.php

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

-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d given\\.$#"
count: 1
path: src/Statements/ReplaceStatement.php

-
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ReplaceStatement\\:\\:\\$values \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\|null\\) does not accept array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\>\\.$#"
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ReplaceStatement\\:\\:\\$values \\(array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\>\\|null\\) does not accept array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\>\\.$#"
count: 1
path: src/Statements/ReplaceStatement.php

Expand Down
3 changes: 1 addition & 2 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,7 @@
</InvalidArgument>
</file>
<file src="src/Statements/ReplaceStatement.php">
<InvalidArgument occurrences="2">
<code>$this-&gt;values</code>
<InvalidArgument occurrences="1">
<code>$this-&gt;values</code>
</InvalidArgument>
<InvalidPropertyAssignmentValue occurrences="1">
Expand Down
2 changes: 1 addition & 1 deletion src/Statements/ReplaceStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ReplaceStatement extends Statement
/**
* Values to be replaced.
*
* @var Array2d|null
* @var Array2d[]|null
*/
public $values;

Expand Down

0 comments on commit 5ac8e6f

Please sign in to comment.