|
54 | 54 | 'apps/comments/composer', |
55 | 55 | 'apps/comments/tests', |
56 | 56 | 'apps/dav/composer', |
| 57 | + 'apps/dav/templates', |
57 | 58 | 'apps/dav/tests', |
58 | 59 | 'apps/encryption/composer', |
| 60 | + 'apps/encryption/templates/', |
59 | 61 | 'apps/encryption/tests', |
60 | 62 | 'apps/federatedfilesharing/composer', |
| 63 | + 'apps/federatedfilesharing/templates/', |
61 | 64 | 'apps/federatedfilesharing/tests', |
62 | 65 | 'apps/federation/composer', |
| 66 | + 'apps/federation/templates/', |
63 | 67 | 'apps/federation/tests', |
64 | 68 | 'apps/files/composer', |
| 69 | + 'apps/files/templates/', |
65 | 70 | 'apps/files/tests', |
66 | 71 | 'apps/files_external/3rdparty', |
67 | 72 | 'apps/files_external/composer', |
| 73 | + 'apps/files_external/templates/', |
68 | 74 | 'apps/files_external/tests', |
69 | 75 | 'apps/files_sharing/composer', |
| 76 | + 'apps/files_sharing/templates/', |
70 | 77 | 'apps/files_sharing/tests', |
71 | 78 | 'apps/files_trashbin/composer', |
| 79 | + 'apps/files_trashbin/templates/', |
72 | 80 | 'apps/files_trashbin/tests', |
73 | 81 | 'apps/files_versions/composer', |
74 | 82 | 'apps/files_versions/tests', |
75 | 83 | 'apps/lookup_server_connector/composer', |
76 | 84 | 'apps/lookup_server_connector/tests', |
77 | 85 | 'apps/oauth2/composer', |
| 86 | + 'apps/oauth2/templates/', |
78 | 87 | 'apps/oauth2/tests', |
79 | 88 | 'apps/provisioning_api/composer', |
80 | 89 | 'apps/provisioning_api/tests', |
81 | 90 | 'apps/sharebymail/composer', |
| 91 | + 'apps/sharebymail/templates/', |
82 | 92 | 'apps/sharebymail/tests', |
83 | 93 | 'apps/systemtags/composer', |
| 94 | + 'apps/systemtags/templates', |
84 | 95 | 'apps/systemtags/tests', |
85 | 96 | 'apps/testing/composer', |
86 | 97 | 'apps/testing/tests', |
87 | 98 | 'apps/theming/composer', |
| 99 | + 'apps/theming/templates/', |
88 | 100 | 'apps/theming/tests', |
89 | 101 | 'apps/twofactor_backupcodes/composer', |
| 102 | + 'apps/twofactor_backupcodes/templates/', |
90 | 103 | 'apps/twofactor_backupcodes/tests', |
91 | 104 | 'apps/updatenotification/composer', |
| 105 | + 'apps/updatenotification/templates/', |
92 | 106 | 'apps/updatenotification/tests', |
93 | 107 | 'apps/user_ldap/composer', |
| 108 | + 'apps/user_ldap/templates/', |
94 | 109 | 'apps/user_ldap/tests', |
95 | 110 | 'apps/workflowengine/composer', |
| 111 | + 'apps/workflowengine/templates/', |
96 | 112 | 'apps/workflowengine/tests', |
97 | 113 | 'build/.phan/', |
| 114 | + 'core/templates', |
98 | 115 | 'lib/composer', |
| 116 | + 'settings/templates', |
99 | 117 | ], |
100 | 118 |
|
101 | 119 | // A file list that defines files that will be excluded |
|
135 | 153 | // it before upgrading your version of PHP to a |
136 | 154 | // new version that has backward compatibility |
137 | 155 | // breaks. |
138 | | - 'backward_compatibility_checks' => false, |
| 156 | + 'backward_compatibility_checks' => true, |
139 | 157 |
|
140 | 158 | // Run a quick version of checks that takes less |
141 | 159 | // time at the cost of not running as thorough |
|
144 | 162 | // to fix in your code base. |
145 | 163 | 'quick_mode' => false, |
146 | 164 |
|
| 165 | + // If true, check to make sure the return type declared |
| 166 | + // in the doc-block (if any) matches the return type |
| 167 | + // declared in the method signature. This process is |
| 168 | + // slow. |
| 169 | + 'check_docblock_signature_return_type_match' => true, |
| 170 | + |
147 | 171 | // If true, check to make sure the return type declared |
148 | 172 | // in the doc-block (if any) matches the return type |
149 | 173 | // declared in the method signature. This process is |
150 | 174 | // slow. |
151 | 175 | 'check_docblock_signature_param_type_match' => true, |
152 | 176 |
|
| 177 | + // (*Requires check_docblock_signature_param_type_match to be true*) |
| 178 | + // If true, make narrowed types from phpdoc params override |
| 179 | + // the real types from the signature, when real types exist. |
| 180 | + // (E.g. allows specifying desired lists of subclasses, |
| 181 | + // or to indicate a preference for non-nullable types over nullable types) |
| 182 | + // Affects analysis of the body of the method and the param types passed in by callers. |
| 183 | + 'prefer_narrowed_phpdoc_param_type' => true, |
| 184 | + |
| 185 | + // (*Requires check_docblock_signature_return_type_match to be true*) |
| 186 | + // If true, make narrowed types from phpdoc returns override |
| 187 | + // the real types from the signature, when real types exist. |
| 188 | + // (E.g. allows specifying desired lists of subclasses, |
| 189 | + // or to indicate a preference for non-nullable types over nullable types) |
| 190 | + // Affects analysis of return statements in the body of the method and the return types passed in by callers. |
| 191 | + 'prefer_narrowed_phpdoc_return_type' => true, |
| 192 | + |
153 | 193 | // If enabled, check all methods that override a |
154 | 194 | // parent method to make sure its signature is |
155 | 195 | // compatible with the parent's. This check |
|
187 | 227 |
|
188 | 228 | // If enabled, scalars (int, float, bool, true, false, string, null) |
189 | 229 | // are treated as if they can cast to each other. |
190 | | - 'scalar_implicit_cast' => true, |
| 230 | + 'scalar_implicit_cast' => false, |
191 | 231 |
|
192 | 232 | // If this has entries, scalars (int, float, bool, true, false, string, null) |
193 | 233 | // are allowed to perform the casts listed. |
|
201 | 241 | // scope will be ignored. This is useful for projects |
202 | 242 | // with complicated cross-file globals that you have no |
203 | 243 | // hope of fixing. |
204 | | - 'ignore_undeclared_variables_in_global_scope' => true, |
| 244 | + 'ignore_undeclared_variables_in_global_scope' => false, |
205 | 245 |
|
206 | 246 | // Add any issue types (such as 'PhanUndeclaredMethod') |
207 | 247 | // to this black-list to inhibit them from being reported. |
|
0 commit comments