forked from zendframework/zf1
-
Notifications
You must be signed in to change notification settings - Fork 7
/
phpstan-php81.php
39 lines (36 loc) · 1.42 KB
/
phpstan-php81.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
<?php declare(strict_types = 1);
if (version_compare(PHP_VERSION, '8.1', '<')) {
return [];
}
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$font of function imagefontheight expects GdFont\\|int, int\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$font of function imagefontwidth expects GdFont\\|int, int\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$font of function imagestring expects GdFont\\|int, int\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$version of class DOMDocument constructor expects string, string\\|null given\\.$#',
'count' => 2,
'path' => __DIR__ . '/library/Zend/Feed/Atom.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$version of class DOMDocument constructor expects string, string\\|null given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Feed/Element.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$version of class DOMDocument constructor expects string, string\\|null given\\.$#',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Feed/Rss.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];