-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan-baseline.php
55 lines (53 loc) · 5.71 KB
/
phpstan-baseline.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$onSuccess of method pocketmine\\\\promise\\\\Promise\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:onCompletion\\(\\) expects Closure\\(array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\)\\: void, Closure\\(array\\)\\: pocketmine\\\\promise\\\\Promise\\<array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\> given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Cone.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$value of method pocketmine\\\\promise\\\\PromiseResolver\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:resolve\\(\\) expects array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}, array\\{chunks\\: array\\<int, pocketmine\\\\world\\\\format\\\\Chunk\\|null\\>, time\\: float, blockCount\\: int\\<0, max\\>\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Cone.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$onSuccess of method pocketmine\\\\promise\\\\Promise\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:onCompletion\\(\\) expects Closure\\(array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\)\\: void, Closure\\(array\\)\\: pocketmine\\\\promise\\\\Promise\\<array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\> given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Cuboid.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$value of method pocketmine\\\\promise\\\\PromiseResolver\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:resolve\\(\\) expects array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}, array\\{chunks\\: array\\<int, pocketmine\\\\world\\\\format\\\\Chunk\\|null\\>, time\\: float, blockCount\\: int\\<0, max\\>\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Cuboid.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$onSuccess of method pocketmine\\\\promise\\\\Promise\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:onCompletion\\(\\) expects Closure\\(array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\)\\: void, Closure\\(array\\)\\: pocketmine\\\\promise\\\\Promise\\<array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\> given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Cylinder.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$value of method pocketmine\\\\promise\\\\PromiseResolver\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:resolve\\(\\) expects array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}, array\\{chunks\\: array\\<int, pocketmine\\\\world\\\\format\\\\Chunk\\|null\\>, time\\: float, blockCount\\: int\\<0, max\\>\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Cylinder.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$onSuccess of method pocketmine\\\\promise\\\\Promise\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:onCompletion\\(\\) expects Closure\\(array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\)\\: void, Closure\\(array\\)\\: pocketmine\\\\promise\\\\Promise\\<array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\> given\\.$#',
'count' => 2,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Shape.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$value of method pocketmine\\\\promise\\\\PromiseResolver\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:resolve\\(\\) expects array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}, non\\-empty\\-array given\\.$#',
'count' => 2,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Shape.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$onSuccess of method pocketmine\\\\promise\\\\Promise\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:onCompletion\\(\\) expects Closure\\(array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\)\\: void, Closure\\(array\\)\\: pocketmine\\\\promise\\\\Promise\\<array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}\\> given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Sphere.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$value of method pocketmine\\\\promise\\\\PromiseResolver\\<array\\<string, array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>\\|float\\|int\\>\\>\\:\\:resolve\\(\\) expects array\\{chunks\\: array\\<pocketmine\\\\world\\\\format\\\\Chunk\\>, time\\: float, blockCount\\: int\\}, array\\{chunks\\: array\\<int, pocketmine\\\\world\\\\format\\\\Chunk\\|null\\>, time\\: float, blockCount\\: int\\<0, max\\>\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/libEfficientWE/shapes/Sphere.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];