-
Notifications
You must be signed in to change notification settings - Fork 775
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
30 lines (30 loc) · 1.28 KB
/
phpstan.neon.dist
File metadata and controls
30 lines (30 loc) · 1.28 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
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
level: 8
treatPhpDocTypesAsCertain: false
paths:
- src/
- tests/