-
Notifications
You must be signed in to change notification settings - Fork 125
/
phpstan.neon
42 lines (41 loc) · 2.41 KB
/
phpstan.neon
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
33
34
35
36
37
38
39
40
41
42
includes:
- ./vendor/nunomaduro/larastan/extension.neon
# - ./vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
- ./vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ./vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
paths:
- app
- tests
excludePaths:
- app/Http/ViewHelpers/Employee/EmployeeShowViewHelper.php
- app/Http/ViewHelpers/Employee/EmployeeWorkViewHelper.php
- app/Http/ViewHelpers/Company/HR/CompanyHRViewHelper.php
- app/Http/ViewHelpers/Company/Group/GroupMembersViewHelper.php
- app/Services/Company/Group/CreateMeeting.php
- app/Http/ViewHelpers/Company/Group/GroupMeetingsViewHelper.php
- app/Http/ViewHelpers/Company/Group/GroupShowViewHelper.php
- app/Http/ViewHelpers/Company/Group/GroupViewHelper.php
- tests/ApiTestCase.php
- tests/TestCase.php
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
level: 5
ignoreErrors:
- '#Argument of an invalid type Illuminate\\Contracts\\Pagination\\LengthAwarePaginator supplied for foreach, only iterables are supported#'
- '#Method [a-zA-Z0-9\\_:]+\(\) should return Illuminate\\Http\\(Json)?Response but returns Illuminate\\Http\\RedirectResponse\.#'
- '#Access to an undefined property [a-zA-Z0-9\\_]+#'
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Collection[a-zA-Z0-9\|\.\\_\(\)\:]+\.#'
- '#Parameter .+#'
- '#Cannot access property \$[a-zA-Z0-9_]+ on int.#'
- message: '#Access to an undefined property App\\Models\\Company\\Employee::\$pivot\.#'
path: 'app/Http/ViewHelpers/Company/Project/ProjectMembersViewHelper.php'
- message: '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::[a-zA-Z0-9\\_]+\(\)\.#'
path: 'tests/Unit/Traits/JsonRespondControllerTest.php'
- message: '#Cannot access property \$[a-zA-Z0-9_]+ on array.#'
path: 'app/Helpers/LogHelper.php'
- message: '#Cannot access property \$[a-zA-Z0-9_]+ on array.#'
path: 'app/Helpers/NotificationHelper.php'
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Factories\\Factory::[a-zA-Z0-9\\_]+\(\)\.#'
- '#Parameter \#1 \$amount of static method App\\Helpers\\MoneyHelper::format\(\) expects int\, float given\.#'