-
Notifications
You must be signed in to change notification settings - Fork 27
/
phpstan.neon.dist
51 lines (51 loc) · 1.68 KB
/
phpstan.neon.dist
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
42
43
44
45
46
47
48
49
50
51
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 5
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
paths:
# Test only the new architecture for now.
- classes/
- Tests/Unit/
bootstrapFiles:
scanDirectories:
- inc/Dependencies/ActionScheduler
- Tests/Fixtures/
scanFiles:
- imagify.php
- inc/common/attachments.php
- inc/functions/admin.php
- inc/functions/admin-stats.php
- inc/functions/admin-ui.php
- inc/functions/api.php
- inc/functions/attachments.php
- inc/functions/common.php
- inc/functions/formatting.php
- inc/functions/options.php
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- vendor/php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php
excludePaths:
# These needs to be updated to abstract filesystem instantiation outside of Imagify_Filesystem class
- classes/Avif/Display.php
- classes/Avif/RewriteRules/Display.php
- classes/Bulk/AbstractBulk.php
- classes/Bulk/CustomFolders.php
- classes/Bulk/WP.php
- classes/Media/AbstractMedia.php
- classes/Optimization/Data/AbstractData.php
- classes/Optimization/File.php
- classes/Optimization/Process/WP.php
- classes/Optimization/Process/AbstractProcess.php
- classes/Picture/Display.php
- classes/Plugin.php
- classes/Webp/RewriteRules/Display.php
- classes/Webp/Display.php
- classes/WriteFile/AbstractIISDirConfFile.php
- classes/WriteFile/AbstractApacheDirConfFile.php
- classes/WriteFile/AbstractWriteDirConfFile.php
- classes/WriteFile/AbstractNginxDirConfFile.php
# WP_CLI is not part of the testable paths
- classes/CLI/
# Don't check dependencies
- classes/Dependencies/