-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.php
More file actions
35 lines (33 loc) · 1.56 KB
/
phpstan-baseline.php
File metadata and controls
35 lines (33 loc) · 1.56 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
34
35
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'rawMessage' => 'Doing instanceof PHPStan\\Type\\Generic\\GenericObjectType is error-prone and deprecated.',
'identifier' => 'phpstanApi.instanceofType',
'count' => 1,
'path' => __DIR__ . '/src/Type/ExpectationDynamicMethodReturnTypeExtension.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Generator expects value type array{string, string, mixed}, array<mixed> given.',
'identifier' => 'generator.valueType',
'count' => 1,
'path' => __DIR__ . '/tests/ExpectationTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #1 $assertType of method Nexus\\Assert\\Tests\\ExpectationTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/ExpectationTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #2 $file of method Nexus\\Assert\\Tests\\ExpectationTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/ExpectationTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Property Nexus\\Assert\\Tools\\ExpectationVariantsGenerator::$options (array{all?: false, negated?: false, nullable?: false, keys?: false, values?: false, help?: false}) does not accept array<string, list<mixed>|string|false>.',
'identifier' => 'assign.propertyType',
'count' => 1,
'path' => __DIR__ . '/tools/src/ExpectationVariantsGenerator.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];