mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-05-31 00:04:27 +08:00
23 lines
829 B
Text
23 lines
829 B
Text
includes:
|
|
- vendor/larastan/larastan/extension.neon
|
|
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
|
|
|
|
parameters:
|
|
level: 6
|
|
paths:
|
|
- app/
|
|
checkModelProperties: true
|
|
checkOctaneCompatibility: true
|
|
noEnvCallsOutsideOfConfig: true
|
|
checkModelAppends: true
|
|
treatPhpDocTypesAsCertain: false
|
|
|
|
ignoreErrors:
|
|
# Can occasionally catch a mistake, but usually just forbids using assert() in places that actually need it
|
|
# - '#will always evaluate to true#'
|
|
|
|
# BelongsToMany is totally broken with larastan now, but things are even more broken without it.
|
|
- "#should return.*BelongsToMany<#"
|
|
|
|
# Builder's phpstan types are completely broken and there's nothing I can do about it.
|
|
- "#Builder does not specify its types: TModel#"
|