-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
32 lines (31 loc) · 1.49 KB
/
Copy pathphpstan.neon
File metadata and controls
32 lines (31 loc) · 1.49 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
includes:
- vendor/larastan/larastan/extension.neon
# Baseline mit aktuellen Bestands-Findings (Larastan-Limitations bei
# Eloquent-Type-Resolution). Neue Findings werden weiterhin gefangen.
# Bei Refactor: einzelne Einträge entfernen, oder neu generieren mit
# 'phpstan analyse --generate-baseline'.
- phpstan-baseline.neon
parameters:
paths:
- app/
- database/seeders/
level: 5
ignoreErrors:
# Eloquent-Magic-Properties via __get werden ohne @property-Annotation
# nicht erkannt; ein Model komplett zu annotieren ist hoher Aufwand bei
# geringem Wert (Casts/Fillable sind Single-Source-of-Truth).
- identifier: property.notFound
- identifier: property.nonObject
# Nullsafe-Operator auf eigentlich non-null Properties (z. B. after-save
# Reload) ist defensiver Stil, kein Bug — bricht nichts und schützt vor
# zukünftigen Schema-Änderungen.
- identifier: nullsafe.neverNull
# Eloquent::orderByDesc gibt verschiedene Builder-Returns zurück, die
# Larastan nicht durchgängig auflöst — meist falsche positive.
- identifier: method.nonObject
# Match-Statements mit Default-Klausel (defensiver Stil) werden als
# 'always true' gewarnt, wenn alle Enum-Werte explizit aufgezählt sind.
# Default bleibt als Schutz vor zukünftigen Enum-Erweiterungen.
- identifier: match.alwaysTrue
excludePaths:
- app/Console/Kernel.php (?)