-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpstan-baseline.php
More file actions
23 lines (21 loc) · 1.13 KB
/
phpstan-baseline.php
File metadata and controls
23 lines (21 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Doing instanceof PHPStan\\\\Type\\\\TypeWithClassName is error\\-prone and deprecated\\. Use Type\\:\\:getObjectClassNames\\(\\) or Type\\:\\:getObjectClassReflections\\(\\) instead\\.$#',
'identifier' => 'phpstanApi.instanceofType',
'count' => 1,
'path' => __DIR__ . '/src/Rule/CurrencyAvailableWithinToCurrenciesContainsRector.php',
];
$ignoreErrors[] = [
'message' => '#^Asking about instanceof PHPStan\\\\Analyser\\\\MutatingScope is not covered by backward compatibility promise\\. The class might change in a minor PHPStan version\\.$#',
'identifier' => 'phpstanApi.class',
'count' => 1,
'path' => __DIR__ . '/src/Rule/MultiplyAndDivideByStringRector.php',
];
$ignoreErrors[] = [
'message' => '#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#',
'identifier' => 'phpstanApi.instanceofType',
'count' => 1,
'path' => __DIR__ . '/src/Rule/MultiplyAndDivideByStringRector.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];