| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,42 @@ |
| 1 |
+<?xml version="1.0"?> |
|
| 2 |
+<psalm |
|
| 3 |
+ useDocblockTypes="true" |
|
| 4 |
+> |
|
| 5 |
+ <projectFiles> |
|
| 6 |
+ <directory name="src" /> |
|
| 7 |
+ </projectFiles> |
|
| 8 |
+ <issueHandlers> |
|
| 9 |
+ <InvalidFunctionCall errorLevel="suppress" /> |
|
| 10 |
+ <!-- |
|
| 11 |
+ Previous issue type is suppressed because we have to use a string |
|
| 12 |
+ as a function name for PHP 5.2 compatibility. When testing, be sure |
|
| 13 |
+ to change this to "info". |
|
| 14 |
+ --> |
|
| 15 |
+ |
|
| 16 |
+ <UndefinedFunction errorLevel="info" /> |
|
| 17 |
+ <!-- |
|
| 18 |
+ Inconsistently erroneous. |
|
| 19 |
+ --> |
|
| 20 |
+ |
|
| 21 |
+ <DuplicateClass errorLevel="info" /> |
|
| 22 |
+ <!-- |
|
| 23 |
+ Psalm isn't correctly identifying the guard conditions that return |
|
| 24 |
+ early if a class already exists. |
|
| 25 |
+ --> |
|
| 26 |
+ <RedundantConditionGivenDocblockType errorLevel="suppress" /> |
|
| 27 |
+ |
|
| 28 |
+ <TooFewArguments errorLevel="info" /> |
|
| 29 |
+ |
|
| 30 |
+ <DocblockTypeContradiction errorLevel="info" /> |
|
| 31 |
+ <RedundantCondition errorLevel="info" /> |
|
| 32 |
+ <!-- |
|
| 33 |
+ Redundancy is good for PHP <7 |
|
| 34 |
+ --> |
|
| 35 |
+ |
|
| 36 |
+ <TypeDoesNotContainType errorLevel="info" /> |
|
| 37 |
+ <!-- |
|
| 38 |
+ This mostly fails on `PHP_INT_SIZE === 4` |
|
| 39 |
+ --> |
|
| 40 |
+ |
|
| 41 |
+ </issueHandlers> |
|
| 42 |
+</psalm> |