forked from diablomedia/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-php8.php
More file actions
29 lines (27 loc) · 940 Bytes
/
Copy pathphpstan-php8.php
File metadata and controls
29 lines (27 loc) · 940 Bytes
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
<?php
declare(strict_types = 1);
if (version_compare(PHP_VERSION, '8.0', '>=')) {
return array(
'parameters' => array(
'ignoreErrors' => array(
array(
'message' => '#If condition is always true\.#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Core.php',
),
array(
'message' => '#Negated boolean expression is always false\.#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Validator.php',
),
array(
'message' => '#Comparison operation ">" between int<1, max> and 0 is always true\.#',
'count' => 1,
'path' => __DIR__ . '/lib/Doctrine/Validator.php',
),
)
)
);
} else {
return array();
}