Skip to content

Commit

Permalink
Update phpstan baseline with PHP 7.4
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <[email protected]>
  • Loading branch information
williamdes committed Jul 22, 2022
1 parent c6e0123 commit e9fa3d2
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ parameters:
path: src/Components/Expression.php

-
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#"
message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\<string\\>\\|string given\\.$#"
count: 1
path: src/Components/Expression.php

Expand Down Expand Up @@ -341,7 +341,7 @@ parameters:
path: src/Components/OptionsArray.php

-
message: "#^Parameter \\#2 \\$string2 of function strcasecmp expects string, mixed given\\.$#"
message: "#^Parameter \\#2 \\$str2 of function strcasecmp expects string, mixed given\\.$#"
count: 2
path: src/Components/OptionsArray.php

Expand Down Expand Up @@ -436,7 +436,7 @@ parameters:
path: src/Components/Reference.php

-
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#"
message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\<string\\>\\|string given\\.$#"
count: 1
path: src/Components/Reference.php

Expand Down Expand Up @@ -741,7 +741,7 @@ parameters:
path: src/Statements/ReplaceStatement.php

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

Expand Down Expand Up @@ -806,7 +806,7 @@ parameters:
path: src/Tools/ContextGenerator.php

-
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

Expand All @@ -816,12 +816,12 @@ parameters:
path: src/Tools/TestGenerator.php

-
message: "#^Parameter \\#1 \\$directory of function mkdir expects string, string\\|null given\\.$#"
message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#"
message: "#^Parameter \\#1 \\$pathname of function mkdir expects string, string\\|null given\\.$#"
count: 1
path: src/Tools/TestGenerator.php

Expand Down Expand Up @@ -901,7 +901,7 @@ parameters:
path: src/Utils/Formatter.php

-
message: "#^Parameter \\#1 \\$string of function str_repeat expects string, array\\<int, array\\<string, int\\|string\\>\\>\\|bool\\|string given\\.$#"
message: "#^Parameter \\#1 \\$input of function str_repeat expects string, array\\<int, array\\<string, int\\|string\\>\\>\\|bool\\|string given\\.$#"
count: 1
path: src/Utils/Formatter.php

Expand Down Expand Up @@ -986,7 +986,7 @@ parameters:
path: src/Utils/Tokens.php

-
message: "#^Parameter \\#1 \\$string1 of function strcasecmp expects string, int\\|string given\\.$#"
message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#"
count: 1
path: src/Utils/Tokens.php

Expand Down Expand Up @@ -1120,6 +1120,16 @@ parameters:
count: 1
path: tests/Parser/WithStatementTest.php

-
message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<int, string\\>\\|false\\.$#"
count: 1
path: tests/Utils/BufferedQueryTest.php

-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: tests/Utils/BufferedQueryTest.php

-
message: "#^Parameter \\#1 \\$statement of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Misc\\:\\:getAliases\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement, PhpMyAdmin\\\\SqlParser\\\\Statement\\|null given\\.$#"
count: 1
Expand Down

0 comments on commit e9fa3d2

Please sign in to comment.