forked from cognesy/instructor-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
32 lines (31 loc) · 941 Bytes
/
phpstan.neon
File metadata and controls
32 lines (31 loc) · 941 Bytes
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
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: 8
paths:
- packages/*/src
- packages/*/tests
- src-hub
- config
- examples
excludePaths:
- packages/*/tests/Fixtures/*
- packages/*/tests/Support/*
- examples/*/vendor/*
reportUnmatchedIgnoredErrors: false
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkDynamicProperties: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkPhpDocMethodSignatures: true
treatPhpDocTypesAsCertain: false
tmpDir: /tmp
ignoreErrors:
# Allow mixed types in specific contexts where needed
- '#Parameter .* of .* has invalid type mixed#'
# Allow array access on mixed - common in dynamic contexts
- '#Cannot access offset .* on mixed#'
# Ignore missing generic typehints
-
identifier: missingType.generics