Repository navigation
Expand file tree
/
Copy pathphpstan-baseline.php
More file actions
101 lines (99 loc) · 3.65 KB
/
Copy pathphpstan-baseline.php
File metadata and controls
101 lines (99 loc) · 3.65 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Commands/Lister.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Commands/Lister.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Commands/Run.php',
];
$ignoreErrors[] = [
'message' => '#^While loop condition is always true\\.$#',
'identifier' => 'while.alwaysTrue',
'count' => 1,
'path' => __DIR__ . '/src/Commands/Work.php',
];
$ignoreErrors[] = [
'message' => '#^Access to constant class on an unknown class BlitzPHP\\\\Queue\\\\Job\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^Access to property \\$driver on an unknown class BlitzPHP\\\\Queue\\\\Job\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^Call to method execute\\(\\) on an unknown class BlitzPHP\\\\Queue\\\\Job\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^Call to method queue\\(\\) on an unknown class BlitzPHP\\\\Queue\\\\Job\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^PHPDoc tag @var for variable \\$job contains unknown class BlitzPHP\\\\Queue\\\\Job\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<container\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<queue\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\$job of method BlitzPHP\\\\Tasks\\\\Scheduler\\:\\:job\\(\\) has invalid type BlitzPHP\\\\Queue\\\\Job\\.$#',
'identifier' => 'class.notFound',
'count' => 2,
'path' => __DIR__ . '/src/Scheduler.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<container\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Task.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Task.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<httpclient\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Task.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/TaskRunner.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];