-
Notifications
You must be signed in to change notification settings - Fork 23
/
phpstan.neon
54 lines (54 loc) · 1.52 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
includes:
- vendor/spaze/phpstan-disallowed-calls/extension.neon
parameters:
level: 5
paths:
- simple-jwt-login
- tests
bootstrapFiles:
- phpstan_bootstrap.php
ignoreErrors:
-
message: '#Method SimpleJWTLogin\\Modules\\WordPressDataInterface::(triggerFilter|triggerAction)\(\) invoked with .* parameters, 0 required.#'
path: simple-jwt-login/src
-
message : '#Unsafe call to private method SimpleJWTLogin\\Libraries\\JWT\\JWT::.*\(\) through static::.#'
path: simple-jwt-login/src
-
message : '#Calling exit\(\) is forbidden.*#'
path: simple-jwt-login/src/Modules/WordPressData.php
-
message : '#Using (\$_POST|\$_GET|\$_REQUEST|\$_SERVER) is forbidden.*#'
paths:
- simple-jwt-login/views/
- simple-jwt-login/routes/api.php
- simple-jwt-login/3rd-party/force_login.php
- simple-jwt-login/simple-jwt-login.php
disallowedFunctionCalls:
-
function:
- 'var_dump()'
- 'print_r()'
- 'var_export'
message: 'User a logger instead.'
-
function:
- 'die'
- 'exit'
- 'eval'
- 'exec'
- 'pcntl_exec'
message: 'This function is forbidden.'
disallowedSuperglobals:
-
superglobal: '$_GET'
message: 'not allowed'
-
superglobal: '$_POST'
message: 'not allowed'
-
superglobal: '$_REQUEST'
message: 'not allowed'
-
superglobal: '$_SERVER'
message: 'not allowed'