-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
53 lines (52 loc) · 2.13 KB
/
phpstan.neon
File metadata and controls
53 lines (52 loc) · 2.13 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
parameters:
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Runtime type checks that PHPStan 2 considers redundant but are intentional
- identifier: function.alreadyNarrowedType
- identifier: staticMethod.alreadyNarrowedType
- identifier: method.alreadyNarrowedType
# Doctrine DBAL array type parameter mismatches
-
message: '#executeQuery\(\) expects array<int<0, max>\|string, mixed>#'
identifier: argument.type
-
message: '#query\(\) expects array<int<0, max>\|string, mixed>#'
identifier: argument.type
# Test-only: array_values on list has no effect (intentional safety measure after array_shift)
- identifier: arrayValues.list
path: tests/*
# Test-only: various argument type mismatches from data providers and CSV parsing
-
message: '#getSourceInstance\(\) expects array<string>, (array|mixed) given#'
identifier: argument.type
path: tests/*
-
message: '#getSourceInstanceFromCsv\(\) expects array<string>, (array|mixed) given#'
identifier: argument.type
path: tests/*
-
message: '#getColumnsString\(\) expects array<string>, array given#'
identifier: argument.type
path: tests/*
-
message: '#implode expects array<string>, array given#'
identifier: argument.type
path: tests/*
-
message: '#array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(array\)#'
identifier: argument.type
path: tests/*
-
message: '#array_map expects array, mixed given#'
identifier: argument.type
path: tests/*
-
message: '#BigqueryException::createExceptionFromJobResult\(\) expects#'
identifier: argument.type
path: tests/*
-
message: '#Snowflake\\Table constructor expects array<string>, mixed given#'
identifier: argument.type
path: tests/*
includes:
- phpstan-baseline.neon