-
Notifications
You must be signed in to change notification settings - Fork 774
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
40 lines (40 loc) · 1.77 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
40 lines (40 loc) · 1.77 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
parameters:
fileExtensions:
- php
- phpt
universalObjectCratesClasses:
# Why: Pest annotates the $this inside test/beforeEach closures as TestCall,
# but TestCall is not in Pest's own universalObjectCratesClasses. Tests use
# the documented pattern of setting fixtures on $this in beforeEach and
# reading them in tests, so treat TestCall as a property bag.
- Pest\PendingCalls\TestCall
ignoreErrors:
-
# Why: SimpleXMLElement is weird and doesn't implement anything ArrayAccess-like
message: '/Instanceof between mixed and SimpleXMLElement will always evaluate to false\./'
path: src/Validators/ArrayVal.php
- message: '/Call to an undefined method .+::expectException\(\)/'
path: tests/Pest.php
- message: '/Undefined variable: \$this/'
path: tests/feature/Validators/SizeTest.php
- message: '/Undefined variable: \$this/'
path: tests/Pest.php
- message: '/Method .+\\TestingHandler::handle\(\) never returns null so it can be removed from the return type./'
path: tests/src/Message/TestingHandler.php
- message: '/Property Respect\\Validation\\Test\\Stubs\\.+::\$[a-zA-Z]+ is never read, only written./'
path: tests/src/Stubs
-
# Why: src/Mixins/* are generated typing aids. Their @return Chain<...> carry the
# narrowing types derived from #[Assurance] (the same ones FluentAnalysis computes
# at analysis time), e.g. bare `array` or `ArrayAccess`. Fully parameterising those
# generics would only clutter the IDE-facing types without adding narrowing value.
identifier: missingType.iterableValue
path: src/Mixins/*
-
identifier: missingType.generics
path: src/Mixins/*
level: 8
treatPhpDocTypesAsCertain: false
paths:
- src/
- tests/