-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathphpstan.neon
More file actions
41 lines (33 loc) · 1.16 KB
/
Copy pathphpstan.neon
File metadata and controls
41 lines (33 loc) · 1.16 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
36
37
38
39
40
41
# Run PHPStan code analysis with `clear && ./vendor/bin/phpstan analyse --memory-limit=384M` command
# Add custom PHPStan rules
services:
-
class: Php\Rules\NoShortNullableTypeRule
tags: [phpstan.rules.rule]
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- app/
- database/
- php/Rules
- tests/
- resources/
# Level 9 is the highest level
level: 7
phpVersion: 80500
ignoreErrors:
- identifier: missingType.generics
- identifier: missingType.iterableValue
- '#Parameter \#1 \$value of static method Illuminate\\Database\\Connection::raw\(\)#'
# Required because of bug where PHPStan triggers regex in app/GameMessages/Abstracts/GameMessage.php
# as error: Negated boolean expression is always false. Check later if this is fixed by removing
# this line and running PHPStan again. If it does not throw any errors anymore, you can safely remove this.
treatPhpDocTypesAsCertain: false
# ignoreErrors:
# - '#PHPDoc tag @var#'
#
# excludePaths:
# - ./*/*/FileToBeExcluded.php
#
# checkMissingIterableValueType: false