Skip to content

Commit c52b672

Browse files
committed
Update phpstan baseline
Signed-off-by: William Desportes <[email protected]>
1 parent c5b7495 commit c52b672

File tree

1 file changed

+13
-33
lines changed

1 file changed

+13
-33
lines changed

phpstan-baseline.neon

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ parameters:
6060
count: 2
6161
path: src/Components/AlterOperation.php
6262

63+
-
64+
message: "#^Parameter \\#1 \\$key of function array_key_exists expects int\\|string, float\\|int\\|string given\\.$#"
65+
count: 2
66+
path: src/Components/AlterOperation.php
67+
68+
-
69+
message: "#^Parameter \\#1 \\$tokenValue of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\AlterOperation\\:\\:checkIfColumnDefinitionKeyword\\(\\) expects string, float\\|int\\|string given\\.$#"
70+
count: 1
71+
path: src/Components/AlterOperation.php
72+
6373
-
6474
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Components\\\\AlterOperation\\:\\:build\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
6575
count: 1
@@ -1711,7 +1721,7 @@ parameters:
17111721
path: src/Tools/TestGenerator.php
17121722

17131723
-
1714-
message: "#^Parameter \\#1 \\$str of function substr expects string, string\\|null given\\.$#"
1724+
message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|null given\\.$#"
17151725
count: 1
17161726
path: src/Tools/TestGenerator.php
17171727

@@ -2430,49 +2440,19 @@ parameters:
24302440
count: 1
24312441
path: tests/Components/ConditionTest.php
24322442

2433-
-
2434-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\Components\\\\CreateDefinitionTest\\:\\:testParse\\(\\) has no return typehint specified\\.$#"
2435-
count: 1
2436-
path: tests/Components/CreateDefinitionTest.php
2437-
2438-
-
2439-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\Components\\\\CreateDefinitionTest\\:\\:testParse2\\(\\) has no return typehint specified\\.$#"
2440-
count: 1
2441-
path: tests/Components/CreateDefinitionTest.php
2442-
2443-
-
2444-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\Components\\\\CreateDefinitionTest\\:\\:testParseErr1\\(\\) has no return typehint specified\\.$#"
2445-
count: 1
2446-
path: tests/Components/CreateDefinitionTest.php
2447-
2448-
-
2449-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\Components\\\\CreateDefinitionTest\\:\\:testParseErr2\\(\\) has no return typehint specified\\.$#"
2450-
count: 1
2451-
path: tests/Components/CreateDefinitionTest.php
2452-
2453-
-
2454-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\Components\\\\CreateDefinitionTest\\:\\:testBuild\\(\\) has no return typehint specified\\.$#"
2455-
count: 1
2456-
path: tests/Components/CreateDefinitionTest.php
2457-
24582443
-
24592444
message: "#^Cannot access offset 1 on array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
24602445
count: 1
24612446
path: tests/Components/CreateDefinitionTest.php
24622447

2463-
-
2464-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\Components\\\\CreateDefinitionTest\\:\\:testBuild2\\(\\) has no return typehint specified\\.$#"
2465-
count: 1
2466-
path: tests/Components/CreateDefinitionTest.php
2467-
24682448
-
24692449
message: "#^Cannot access offset 2 on array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
24702450
count: 1
24712451
path: tests/Components/CreateDefinitionTest.php
24722452

24732453
-
2474-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\Components\\\\CreateDefinitionTest\\:\\:testBuildWithInvisibleKeyword\\(\\) has no return typehint specified\\.$#"
2475-
count: 1
2454+
message: "#^Access to an undefined property PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:\\$fields\\.$#"
2455+
count: 3
24762456
path: tests/Components/CreateDefinitionTest.php
24772457

24782458
-

0 commit comments

Comments
 (0)