Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,19 @@ parameters:
excludePaths:
- vendor
ignoreErrors:
# larastan validates a view-string literal against a skeleton app that never
# boots this package's provider, so a namespace registered at RUNTIME is
# invisible to it and every `view()` / `View::make()` call reads as an error.
# The views exist; the suite renders them. Broad on purpose -- the narrow
# forms missed `static method`, `Contracts\View\Factory` and the helper,
# each of which had to be discovered from a red run.
- '#expects view-string, string given#'
# Generic array value types in docblocks are not enforced (laranail convention).
-
identifier: missingType.iterableValue
treatPhpDocTypesAsCertain: false

# Required BECAUSE of the ignore above: only larastan 3.x emits that error, so
# where an older one is installed the pattern would itself become an
# unmatched-ignore ERROR -- moving the failure rather than fixing it.
reportUnmatchedIgnoredErrors: false