-
-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathphpstan.neon
More file actions
85 lines (73 loc) · 2.22 KB
/
phpstan.neon
File metadata and controls
85 lines (73 loc) · 2.22 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
parameters:
level: 8
paths:
- src
ignoreErrors:
# The namespace is referenced, not the class.
- '#Class dibi referenced with incorrect case: Dibi#'
# HashMap: intentional dynamic properties with #[AllowDynamicProperties]
-
identifier: property.notFound
path: src/Dibi/HashMap.php
-
identifier: booleanAnd.rightAlwaysTrue
path: src/Dibi/HashMap.php
# Helpers: various false positives
-
identifier: binaryOp.invalid
path: src/Dibi/Helpers.php
-
identifier: notIdentical.alwaysTrue
path: src/Dibi/Helpers.php
-
identifier: ternary.alwaysTrue
path: src/Dibi/Helpers.php
# Translator: switch-case type narrowing in formatValue()
-
message: '#.#'
path: src/Dibi/Translator.php
# ODBC driver: PHP 8.4 changed resource to Odbc\Connection/Result objects
-
message: '#.#'
path: src/Dibi/Drivers/ODBC/Connection.php
-
message: '#.#'
path: src/Dibi/Drivers/ODBC/Result.php
-
message: '#.#'
path: src/Dibi/Drivers/Engines/ODBCEngine.php
# Table: $foreignKeys property only read (initForeignKeys throws NotImplementedException)
-
identifier: property.onlyRead
path: src/Dibi/Reflection/Table.php
# PgSQL\Connection: connection loss guard (connection type is non-nullable)
-
identifier: booleanNot.alwaysFalse
path: src/Dibi/Drivers/PgSQL/Connection.php
# Connection: dynamic driver instantiation (new $class) and runtime callable check
-
identifier: instanceof.alwaysTrue
path: src/Dibi/Connection.php
-
identifier: nullCoalesce.initializedProperty
paths:
- src/Dibi/Drivers/PDO/Connection.php
- src/Dibi/Drivers/PDO/Result.php
# Engines: dynamically built arrays can't be tracked by PHPStan
-
identifier: return.type
paths:
- src/Dibi/Drivers/Engines/FirebirdEngine.php
- src/Dibi/Drivers/Engines/PostgreSQLEngine.php
-
identifier: offsetAccess.notFound
paths:
- src/Dibi/Drivers/Engines/MySQLEngine.php
- src/Dibi/Drivers/Engines/SQLiteEngine.php
# preg_match(): PHPStan can't prove the match always succeeds at this point in execution
-
identifier: offsetAccess.notFound
paths:
- src/Dibi/Drivers/Firebird/Connection.php
- src/Dibi/Drivers/Firebird/Result.php
- src/Dibi/Result.php