forked from diablomedia/zf1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-php80.php
84 lines (81 loc) · 3.09 KB
/
phpstan-php80.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
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
<?php declare(strict_types = 1);
if (version_compare(PHP_VERSION, '8.1', '>=')) {
return [];
}
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 2,
'path' => __DIR__ . '/library/Zend/Feed.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Feed/Abstract.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Feed/Entry/Abstract.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Feed/Entry/Atom.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 2,
'path' => __DIR__ . '/library/Zend/Feed/Reader.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 2,
'path' => __DIR__ . '/library/Zend/Gdata/App.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Gdata/App/Base.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Gdata/Gapps/ServiceException.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, string\\|false given\\.$#',
'count' => 4,
'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression/Flate.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, string\\|false given\\.$#',
'count' => 4,
'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of function ini_set expects string, string\\|false given\\.$#',
'count' => 2,
'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php',
];
$ignoreErrors[] = [
'message' => '#^Access to an undefined property SoapHeader\\:\\:\\$name\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Service/StrikeIron/Base.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$font of function imagefontheight expects int, int\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$font of function imagefontwidth expects int, int\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$font of function imagestring expects int, int\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];