-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon
134 lines (134 loc) · 8.4 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
includes:
- phpstan-baseline.neon
parameters:
treatPhpDocTypesAsCertain: false
level: 8
paths:
- ./
excludePaths:
- %rootDir%/../../../tests/*
- %rootDir%/../../../vendor/*
bootstrapFiles:
- phpstan-constants.php
ignoreErrors:
-
identifier: missingType.iterableValue
-
identifier: missingType.generics
# This does only have one parameter, not sure intent here
- '#Class Zend_Crypt_Rsa_Key_Public constructor invoked with 2 parameters, 1 required\.#'
# This should probably be changed to a do/while loop instead of just while, Zend_Crypt_Math_BigInteger_Bcmath:215
- '#Variable \$hex might not be defined\.#'
# These methods exist on Zend_Crypt_Math but $_math property is typehinted as Zend_Crypt_Math_BigInteger_Interface
- '#Call to an undefined method Zend_Crypt_Math_BigInteger::fromBinary\(\)\.#'
- '#Call to an undefined method Zend_Crypt_Math_BigInteger::toBinary\(\)\.#'
- '#Call to an undefined method Zend_Crypt_Math_BigInteger::btwoc\(\)\.#'
- '#Call to an undefined method Zend_Crypt_Math_BigInteger::rand\(\)\.#'
-
message: '#Parameter \#1 \$key of function openssl_pkey_get_details expects (resource|OpenSSLAsymmetricKey), (resource|OpenSSLAsymmetricKey)\|false given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/DiffieHellman.php
-
message: '#Parameter \#2 \$(dh_key|private_key) of function openssl_dh_compute_key expects (resource|OpenSSLAsymmetricKey), string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/DiffieHellman.php
-
message: '#Property Zend_Crypt_DiffieHellman::\$_secretKey \(string\|null\) does not accept string\|false\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/DiffieHellman.php
-
message: '#Property Zend_Crypt_Rsa_Key::\$_details \(array\) does not accept array\|false\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Rsa/Key/Public.php
-
message: '#Property Zend_Crypt_Rsa_Key::\$_details \(array\) does not accept array\|false\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Rsa/Key/Private.php
-
message: '#Parameter \#1 \$value of method Zend_Crypt_Rsa::setPemString\(\) expects string, string\|false given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Rsa.php
-
message: '#Binary operation "-" between int\|string and 1 results in an error\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math.php
-
message: '#Parameter \#1 \$min of function mt_rand expects int, int\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math.php
-
message: '#Parameter \#1 \$string of function strlen expects string, int\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math.php
-
message: '#Parameter \#1 \$(data|string) of function bin2hex expects string, string\|false given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math.php
-
message: '#Parameter \#1 \$(function|callback) of function call_user_func_array expects callable\(\): mixed, array{Zend_Crypt_Math_BigInteger_Interface, string} given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger.php
-
message: '#Parameter \#2 \$(right_operand|num2) of function bcmod expects string, int given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Bcmath.php
-
message: '#Parameter \#2 \$(right_operand|num2) of function bcdiv expects string, int given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Bcmath.php
-
message: '#Parameter \#1 \$string of function strlen expects string, float\|int given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Bcmath.php
-
message: '#Parameter \#1 \$(a|num1) of function gmp_add expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#2 \$(b|num2) of function gmp_add expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$(a|num1) of function gmp_sub expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#2 \$(b|num2) of function gmp_sub expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$(a|num1) of function gmp_cmp expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#2 \$(b|num2) of function gmp_cmp expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$(a|num1) of function gmp_mod expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#2 \$(b|num2) of function gmp_mod expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$(a|num1) of function gmp_mul expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#2 \$(b|num2) of function gmp_mul expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$(base|num) of function gmp_pow expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$(base|num) of function gmp_powm expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#2 \$(exp|exponent) of function gmp_powm expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#3 \$(mod|modulus) of function gmp_powm expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$(a|num) of function gmp_sqrt expects GMP\|int\|string, GMP\|resource\|string given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#1 \$string of function strlen expects string, float\|int given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Parameter \#2 \$(b|num2) of function gmp_add expects GMP\|int\|string, float\|int given\.#'
path: %currentWorkingDirectory%/src/Zend/Crypt/Math/BigInteger/Gmp.php
-
message: '#Cannot access offset .dh. on array\|false\.#'
path: './src/Zend/Crypt/DiffieHellman.php'
-
message: '#Cannot call method getOpensslKeyResource\(\) on Zend_Crypt_Rsa_Key_Private\|null\.#'
path: './src/Zend/Crypt/Rsa.php'
-
message: '#Cannot access offset .key. on array\|false\.#'
path: './src/Zend/Crypt/Rsa.php'
-
message: '#Parameter \#1 \$value of method Zend_Crypt_Rsa::setCertificateString\(\) expects string, string\|false given\.#'
path: './src/Zend/Crypt/Rsa.php'
-
message: '#Method Zend_Crypt_DiffieHellman::getPrivateKey\(\) should return string but returns string\|null\.#'
path: './src/Zend/Crypt/DiffieHellman.php'