forked from RetroAchievements/RAWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
41 lines (41 loc) · 1.95 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
includes:
- ./vendor/larastan/larastan/extension.neon
parameters:
paths:
- app
- database
- public
- resources/views
- tests
level: 6
treatPhpDocTypesAsCertain: false
# TODO figure out why github actions phpstan does not find the same
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- identifier: missingType.iterableValue # replaces deprecated `checkMissingIterableValueType: false`
- '#Return type of call to method .+::map\(\) contains unresolvable type#'
- '#Unsafe usage of new static#'
# accessors to polymorphic relationships
- '#Access to an undefined property [a-zA-Z0-9\&\\_]+::\$[trigger\|subject]#'
- '#Access to an undefined property [a-zA-Z0-9\&\\_]+::\$[a-zA-Z0-9\&\\_]+[_count]#'
- '#Access to an undefined property App\\Models\\.*#'
# Builder::exists() is not private
#- '#Call to private method exists\(\) of parent class Illuminate\\Database\\Eloquent\\Builder<Illuminate\\Database\\Eloquent\\Model>.#'
- '#Parameter (.*) of function htmlentities expects#'
# TODO views have been removed
- '#Parameter (.*) \$view of function view expects view-string\|null, string given.#'
# lib/database/user-activity.php
- '#Offset (.*) does not exist on#'
# TODO check if still an issue with Laravel 10
- '#Call to an undefined method Database\\Factories#'
- '#Access to an undefined property Illuminate\\Database\\Eloquent\\Model::\$#'
- '#Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\Support\\Collection<\*NEVER\*,\*NEVER\*>::mapWithKeys\(\)#'
- '#Command "ra:sync:(.*)" does not have argument "(.*)"#'
excludePaths:
# unrelated directories
- public/storage
- public/tmp
# disabled features
- public/API/API_GetFeed.php
# third party
- app/Helpers/util/recaptcha.php