-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathphpstan.neon
85 lines (85 loc) · 5.03 KB
/
phpstan.neon
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
parameters:
level: 8
paths:
- src
ignoreErrors:
- '#Method Webauthn\\Bundle\\Security\\Storage\\OptionsStorage::get\(\) invoked with 1 parameter, 0 required\.#'
-
message: '#Class Webauthn\\CertificateChainChecker\\PhpCertificateChainChecker extends @final class Webauthn\\MetadataService\\CertificateChain\\PhpCertificateChainValidator\.#'
path: src/webauthn/src/CertificateChainChecker/PhpCertificateChainChecker.php
count: 1
-
message: '#Method Webauthn\\Bundle\\DependencyInjection\\Factory\\Security\\WebauthnFactory::.*\(\) has parameter \$config(s)? with no value type specified in iterable type array\.#'
path: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php
count: 2
-
message: '#Method Webauthn\\Bundle\\DependencyInjection\\WebauthnExtension::.*\(\) has parameter \$config(s)? with no value type specified in iterable type array\.#'
path: src/symfony/src/DependencyInjection/WebauthnExtension.php
count: 1
-
message: '#Method Webauthn\\Bundle\\Security\\Authorization\\Voter\\IsUserPresentVoter::vote\(\) has parameter \$attributes with no value type specified in iterable type array\.#'
path: src/symfony/src/Security/Authorization/Voter/IsUserPresentVoter.php
count: 1
-
message: '#Method Webauthn\\Bundle\\Security\\Authorization\\Voter\\IsUserVerifiedVoter::vote\(\) has parameter \$attributes with no value type specified in iterable type array\.#'
path: src/symfony/src/Security/Authorization/Voter/IsUserVerifiedVoter.php
count: 1
-
message: '#Cannot call method (scalar|integer)Node\(\) on Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface\|null.#'
path: src/symfony/src/DependencyInjection/Configuration.php
count: 6
-
message: '#Cannot call method scalarNode\(\) on Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface\|null\.#'
path: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php
count: 1
-
message: '#Access to deprecated property \$authenticatorSelection of class Webauthn\\Bundle\\Dto\\PublicKeyCredentialCreationOptionsRequest.*#'
path: src/symfony/src/Controller/AttestationRequestController.php
count: 1
-
message: '#Access to deprecated property \$requireResidentKey of class Webauthn\\AuthenticatorSelectionCriteria\:\nWill be removed in 5\.0\. Please use residentKey instead#'
path: src/webauthn/src/AuthenticatorSelectionCriteria.php
count: 1
-
message: '#Call to deprecated method setRequireResidentKey\(\) of class Webauthn\\AuthenticatorSelectionCriteria\:\nsince v4\.1\. Please use setResidentKey instead#'
path: src/webauthn/src/AuthenticatorSelectionCriteria.php
count: 1
-
message: '#Call to deprecated method setRequireResidentKey\(\) of class Webauthn\\AuthenticatorSelectionCriteria\:\nsince v4\.1\. Please use setResidentKey instead#'
path: src/symfony/src/Controller/AttestationRequestController.php
count: 1
-
message: '#Call to deprecated method setRequireResidentKey\(\) of class Webauthn\\AuthenticatorSelectionCriteria\:\nsince v4\.1\. Please use setResidentKey instead#'
path: src/symfony/src/Service/PublicKeyCredentialCreationOptionsFactory.php
count: 1
-
message: '#.*ECDAA.*#'
path: src/webauthn/src/AuthenticatorAttestationResponseValidator.php
count: 2
-
message: '#.*ECDAA.*#'
path: src/webauthn/src/AttestationStatement/PackedAttestationStatementSupport.php
count: 2
-
message: '#Strict comparison using === between mixed and null will always evaluate to false\.#'
path: src/metadata-service/src/Statement/StatusReport.php
count: 1
- '#.*Binding.*#'
- '#Parameter \#\d+ \$.* of .* expects .*, .* given\.#'
- '#Property .* does not accept .*\|false\.#'
- '#Cannot access offset \d+ on array\|false\.#'
- '#Method .* should return string but returns string\|false\.#'
- '#Call to deprecated method getContentType\(\) of class Symfony\\Component\\HttpFoundation\\Request#'
checkMissingIterableValueType: true
checkGenericClassInNonGenericObjectType: true
checkUninitializedProperties: true
treatPhpDocTypesAsCertain: false
scanFiles:
- vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/ekino/phpstan-banned-code/extension.neon