-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
16 lines (14 loc) · 769 Bytes
/
Copy pathphpstan.neon
File metadata and controls
16 lines (14 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
parameters:
level: 5
paths:
- src
ignoreErrors:
# DTOs initialise readonly properties (metadata, relationships) and the
# Health response via a private trait method called from the constructor.
# This is valid at runtime — readonly props may be written once from within
# class scope — but PHPStan only recognises direct constructor assignment.
- '#Readonly property .* is assigned outside of the constructor\.#'
# DTO constructors keep a `...$args` variadic as a deliberate safety net so
# that undocumented or future Paystack response fields are absorbed instead
# of throwing. It is intentionally unused.
- '#Constructor of class .* has an unused parameter \$args\.#'