-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathphpstan.neon
37 lines (30 loc) · 1023 Bytes
/
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
# 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
ignoreErrors:
- identifier: missingType.generics
# 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