-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
35 lines (35 loc) · 1.76 KB
/
phpstan.neon
File metadata and controls
35 lines (35 loc) · 1.76 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
33
34
35
parameters:
level: 5
paths:
- lib
bootstrapFiles:
- phpstan-bootstrap.php
excludePaths:
- vendor
scanDirectories:
- vendor/nextcloud/ocp
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Nextcloud internal classes that PHPStan might not recognize
- '#Call to an undefined method OC::#'
- '#Class OC not found#'
- '#Access to static property \$server on an unknown class OC#'
# OCA classes from other apps (OpenRegister) not available during static analysis
- '#unknown class OCA\\OpenRegister\\#'
- '#OCA\\OpenRegister\\[a-zA-Z\\]+.*not found#'
- '#on an unknown class OCA\\OpenRegister\\#'
- '#has invalid return type OCA\\OpenRegister\\#'
- '#has invalid type OCA\\OpenRegister\\#'
# CalendarEventService is an OpenRegister type unknown to PHPStan; the property IS
# read in publishAgenda() but PHPStan cannot resolve calls through an unknown class.
- '#Property OCA\\Decidesk\\Service\\AgendaService::\$calendarEventService is never read#'
# GuzzleHttp is available at runtime via Nextcloud but not in composer require
- '#unknown class GuzzleHttp\\#'
- '#GuzzleHttp\\[a-zA-Z\\]+.*not found#'
- '#on an unknown class GuzzleHttp\\#'
- '#invalid type GuzzleHttp\\#'
- '#Caught class GuzzleHttp\\#'
# Dynamic HTTP status codes from business rule validation results
- '#Parameter \$statusCode of class OCP\\AppFramework\\Http\\JSONResponse constructor expects#'
# registerRepairStep exists on server; not yet in nextcloud/ocp stub used for analysis
- '#Call to an undefined method OCP\\AppFramework\\Bootstrap\\IRegistrationContext::registerRepairStep#'