-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathphpstan-baseline.php
59 lines (57 loc) · 2.56 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Method Drenso\\\\OidcBundle\\\\Model\\\\OidcUserData\\:\\:getUserDataArray\\(\\) return type has no value type specified in iterable type array\\.$#',
'identifier' => 'missingType.iterableValue',
'count' => 1,
'path' => __DIR__ . '/src/Model/OidcUserData.php',
];
$ignoreErrors[] = [
'message' => '#^Access to constant AUTHENTICATION_ERROR on an unknown class Symfony\\\\Component\\\\Security\\\\Core\\\\Security\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/OidcClient.php',
];
$ignoreErrors[] = [
'message' => '#^Access to constant LAST_USERNAME on an unknown class Symfony\\\\Component\\\\Security\\\\Core\\\\Security\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/OidcClient.php',
];
$ignoreErrors[] = [
'message' => '#^Access to undefined constant Symfony\\\\Bundle\\\\SecurityBundle\\\\Security\\:\\:AUTHENTICATION_ERROR\\.$#',
'identifier' => 'classConstant.notFound',
'count' => 1,
'path' => __DIR__ . '/src/OidcClient.php',
];
$ignoreErrors[] = [
'message' => '#^Access to undefined constant Symfony\\\\Bundle\\\\SecurityBundle\\\\Security\\:\\:LAST_USERNAME\\.$#',
'identifier' => 'classConstant.notFound',
'count' => 1,
'path' => __DIR__ . '/src/OidcClient.php',
];
$ignoreErrors[] = [
'message' => '#^Method Drenso\\\\OidcBundle\\\\OidcUrlFetcher\\:\\:fetchUrl\\(\\) should return string but returns string\\|true\\.$#',
'identifier' => 'return.type',
'count' => 1,
'path' => __DIR__ . '/src/OidcUrlFetcher.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$option of function curl_setopt expects int, string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/OidcUrlFetcher.php',
];
$ignoreErrors[] = [
'message' => '#^Method Drenso\\\\OidcBundle\\\\Security\\\\Factory\\\\OidcFactory\\:\\:createAuthProvider\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#',
'identifier' => 'missingType.iterableValue',
'count' => 1,
'path' => __DIR__ . '/src/Security/Factory/OidcFactory.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\$passport of method Drenso\\\\OidcBundle\\\\Security\\\\OidcAuthenticator\\:\\:createAuthenticatedToken\\(\\) has invalid type Symfony\\\\Component\\\\Security\\\\Http\\\\Authenticator\\\\Passport\\\\PassportInterface\\.$#',
'identifier' => 'class.notFound',
'count' => 1,
'path' => __DIR__ . '/src/Security/OidcAuthenticator.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];