forked from doctrine/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 11
/
phpstan-php8.php
34 lines (31 loc) · 1.51 KB
/
phpstan-php8.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
<?php declare(strict_types = 1);
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
return array();
}
$ignoreErrors = array();
$ignoreErrors[] = array(
'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Doctrine_Expression_Driver, string\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Expression.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#2 \\$string of function explode expects string, array\\<int, string\\>\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Import/Pgsql.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\<string, int\\<0, 65535\\>\\|string\\|null\\>\\|false given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Manager.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Doctrine_Expression_Driver, non\\-empty\\-string\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Query.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Doctrine_Record, non\\-falsy\\-string\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Table.php',
);
return array('parameters' => array('ignoreErrors' => $ignoreErrors));