forked from zendframework/zf1
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathphpstan-php85.php
More file actions
33 lines (30 loc) · 1.03 KB
/
phpstan-php85.php
File metadata and controls
33 lines (30 loc) · 1.03 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
<?php declare(strict_types = 1);
if (version_compare(PHP_VERSION, '8.5', '<')) {
return [];
}
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Possibly invalid array key type string\\|null\\.$#',
'identifier' => 'offsetAccess.invalidOffset',
'count' => 4,
'path' => __DIR__ . '/library/Zend/Barcode/Object/Code128.php',
];
$ignoreErrors[] = [
'message' => '#^Possibly invalid array key type string\\|null\\.$#',
'identifier' => 'offsetAccess.invalidOffset',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Measure/Number.php',
];
$ignoreErrors[] = [
'message' => '#^Possibly invalid array key type string\\|null\\.$#',
'identifier' => 'offsetAccess.invalidOffset',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Pdf/Font.php',
];
$ignoreErrors[] = [
'message' => '#^Possibly invalid array key type int\\|string\\|null\\.$#',
'identifier' => 'offsetAccess.invalidOffset',
'count' => 1,
'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/Query/Phrase.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];