-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon.dist
32 lines (32 loc) · 1.13 KB
/
phpstan.neon.dist
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
parameters:
databaseMigrationsPath:
- database/migrations/
- vendor/orchestra/testbench-core/laravel/migrations/
scanFiles:
- tests/phpstan/FieldWithRoute.php
- tests/phpstan/MetaDataModel.php
paths:
- src/
- config/
- database/
- routes/
level: 5
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkAlwaysTrueLooseComparison: true
checkClassCaseSensitivity: false
checkDynamicProperties: true
checkExplicitMixed: false
checkImplicitMixed: false
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
ignoreErrors:
- '#^Unsafe usage of new static#'
# Illuminate\View\View vs. Illuminate\Contracts\View\View
- '#^Method Cone\\\S+::render\(\) should return Illuminate\\View\\View but returns Illuminate\\Contracts\\View\\View\.$#'
# SoftDeletes
- '#(\$forceDeleting|::withTrashed|::onlyTrashed|::trashed|::restore)#'