-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathphpstan-baseline.php
29 lines (27 loc) · 1.36 KB
/
phpstan-baseline.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
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
// identifier: missingType.generics
'message' => '#^Method BEAR\\\\Resource\\\\EmbedInterceptor\\:\\:getArgsByInvocation\\(\\) has parameter \\$invocation with generic interface Ray\\\\Aop\\\\MethodInvocation but does not specify its types\\: T$#',
'count' => 1,
'path' => __DIR__ . '/src/EmbedInterceptor.php',
];
$ignoreErrors[] = [
// identifier: missingType.generics
'message' => '#^Method BEAR\\\\Resource\\\\Interceptor\\\\JsonSchemaInterceptor\\:\\:getNamedArguments\\(\\) has parameter \\$invocation with generic interface Ray\\\\Aop\\\\MethodInvocation but does not specify its types\\: T$#',
'count' => 1,
'path' => __DIR__ . '/src/JsonSchema/Interceptor/JsonSchemaInterceptor.php',
];
$ignoreErrors[] = [
// identifier: return.type
'message' => '#^Method BEAR\\\\Resource\\\\OptionsMethods\\:\\:getJsonSchema\\(\\) should return array\\<string, mixed\\> but returns array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/OptionsMethods.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#2 \\$actualJson of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertJsonStringEqualsJsonString\\(\\) expects string, string\\|null given\\.$#',
'count' => 4,
'path' => __DIR__ . '/tests/OptionsTest.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];