forked from doctrine/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 11
/
phpstan-php7.php
39 lines (36 loc) · 1.77 KB
/
phpstan-php7.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.0.0', '>=')) {
return array();
}
$ignoreErrors = array();
$ignoreErrors[] = array(
'message' => '#^Parameter \\#2 \\$pieces of function implode expects array, array\\<int, string\\>\\|false given\\.$#',
'count' => 2,
'path' => __DIR__ . '/lib/Doctrine/Connection/UnitOfWork.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Doctrine_Expression_Driver, \\(string\\|false\\)\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Expression.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#2 \\$str of function explode expects string, array\\<int, string\\>\\|string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Import/Pgsql.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#1 \\$var 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 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Doctrine_Expression_Driver, \\(non\\-empty\\-string\\|false\\)\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Query.php',
);
$ignoreErrors[] = array(
'message' => '#^Parameter \\#1 \\$function 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));