-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpstan.neon
More file actions
62 lines (62 loc) · 2.72 KB
/
phpstan.neon
File metadata and controls
62 lines (62 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
parameters:
level: 8
paths:
- src
excludePaths:
- src/Integrations/Laravel
phpVersion: 80000
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Optional Redis/Memcached dependencies
- '#unknown class Redis#i'
- '#unknown class Memcached#i'
- '#Class Redis not found#'
- '#Class Memcached not found#'
- '#Call to method .+ on an unknown class Redis#'
- '#Call to method .+ on an unknown class Memcached#'
- '#Comparison operation .+ between .+Redis.+ and#'
# Property is never read, only written
- '#Property .+ is never read, only written#'
# Left side of ?? always exists
- '#on left side of \?\? always exists#'
- '#on left side of \?\? does not exist#'
# Dead catch
- '#Dead catch#'
# Parameter type mismatches with built-in functions
- '#Parameter .+ of function sem_get expects bool, int given#'
# Array value types in iterable - too strict for this codebase
- '#has no value type specified in iterable type array#'
- '#type has no value type specified in iterable type array#'
- '#with no value type specified in iterable type array#'
# Missing parameter/return types on PSR-3 interface implementations
- '#has parameter .+ with no type specified#'
- '#has no return type specified#'
# PDO::FETCH_DEFAULT is defined in PHP 8.0.7+
- '#Access to undefined constant PDO::FETCH_DEFAULT#'
# Generic class issues
- '#generic class SplPriorityQueue#'
- '#generic class WeakReference#'
# Properties without types
- '#Property .+ has no type specified#'
# PDOStatement|false from query()
- '#Cannot call method .+ on PDOStatement\|false#'
# Laravel integration - optional dependency
- '#extends unknown class Illuminate#'
- '#implements unknown interface Illuminate#'
- '#Call to an undefined method .+ServiceProvider#'
- '#Access to an undefined property .+ServiceProvider#'
- '#Function config_path not found#'
- '#Cannot call method client\(\) on#'
# Lock interface with nullable keys
- '#expects string, string\|null given#'
# Array type mismatches
- '#does not accept array<int\|string#'
- '#does not accept array<string, PDO\|null>#'
# PDO|null when PDO expected
- '#expects PDO, PDO\|null given#'
# Cache object methods
- '#Call to an undefined method object::get#'
- '#Call to an undefined method object::set#'
# Unused methods (kept for API completeness)
- '#Method .+ is unused#'