Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
70 lines (70 loc) · 2.72 KB
/
Copy pathphpstan.neon
File metadata and controls
70 lines (70 loc) · 2.72 KB
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
parameters:
level: 5
phpVersion: 80100
tmpDir: /tmp/phpstan/QueuedTracking/main
paths:
- .
excludePaths:
analyseAndScan:
- tests/*
analyse:
# Vendored Credis. Scanned but not analysed, so Queue\Backend\Redis and its siblings
# still resolve the client's methods while the library keeps its own conventions.
- libs/credis/*
ignoreErrors:
# Three backends share one $redis property and one getConnection(), holding \Redis,
# \RedisCluster or Credis_Client depending on how the queue is configured. Credis_Client
# mirrors the phpredis API deliberately, which is what makes the arrangement work at
# runtime; expressing it in the types means restructuring the hierarchy.
-
identifier: property.phpDocType
path: Queue/Backend/RedisCluster.php
count: 1
-
identifier: method.childReturnType
path: Queue/Backend/RedisCluster.php
count: 1
-
identifier: assign.propertyType
message: '#does not accept Credis_Client#'
path: Queue/Backend/Sentinel.php
count: 1
# Db::query() is declared to return a Zend_Db_Statement, but in tracker mode with the
# mysqli adapter it does not — which is exactly what the branches these findings sit on
# were written to handle, as their own comments say.
-
identifier: identical.alwaysFalse
message: '#Zend_Db_Statement and false#'
path: Queue/Backend/MySQL.php
count: 1
-
identifier: function.alreadyNarrowedType
message: '#with Zend_Db_Statement#'
path: Queue/Backend/MySQL.php
count: 2
# Db::get() is declared as a union whose interface never declares fetchCol(), though both
# implementations it can return do provide it.
-
identifier: method.notFound
message: '#::fetchCol\(\)#'
path: Queue/Backend/MySQL.php
count: 1
-
identifier: method.notFound
message: '#::fetchCol\(\)#'
path: Tasks.php
count: 1
# The updater builds every Updates class with the migration factory, as this plugin's two
# other update classes show; this one performs no migrations and so never uses it.
-
identifier: constructor.unusedParameter
path: Updates/5.1.0.php
count: 1
bootstrapFiles:
- ../../bootstrap-phpstan.php
universalObjectCratesClasses:
- Piwik\Config
- Piwik\View
- Piwik\ViewDataTable\Config
scanDirectories:
- ../../