-
-
Notifications
You must be signed in to change notification settings - Fork 187
/
phpstan.neon
30 lines (26 loc) · 1.82 KB
/
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
includes:
- vendor/phpstan/phpstan-doctrine/extension.neon
parameters:
level: 1
paths:
- src
scanDirectories:
- .build/stubs
excludePaths:
- src/Kunstmaan/*/Tests/*
- src/Kunstmaan/*/vendor/*
- src/Kunstmaan/BehatBundle
- src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle
- src/Kunstmaan/CookieBundle/Resources/skeleton
- src/Kunstmaan/CacheBundle # Temporary excluded for full rework
- src/Kunstmaan/FixturesBundle # Temporary excluded for full rework
# Excluded deprecated classes/files
- src/Kunstmaan/GeneratorBundle/Helper/Sf4AppBundle.php # BC layer
ignoreErrors:
- '#Constructor of class Kunstmaan\\MediaBundle\\AdminList\\MediaAdminListConfigurator has an unused parameter \$mediaManager\.#' # Will be fixed in separate PR
# Incorrect return types. Needs to be deprecated and removed in separate PR's
- '#Method Kunstmaan\\AdminBundle\\Form\\UserType\:\:setCanEditAllFields\(\) should return bool but return statement is missing\.#'
- '#Method Kunstmaan\\TranslatorBundle\\Service\\Command\\Exporter\\ExportCommandHandler\:\:executeExportCommand\(\) should return int but return statement is missing\.#'
- '#Method Kunstmaan\\NodeSearchBundle\\PagerFanta\\Adapter\\SearcherRequestAdapter\:\:processResponse\(\) should return array\|Elastica\\ResultSet but return statement is missing\.#'
- '#Method Kunstmaan\\NodeSearchBundle\\Configuration\\NodePagesConfiguration\:\:(addPermissions|addSearchType)\(\) should return array but return statement is missing\.#'
- '#Method Kunstmaan\\DashboardBundle\\Repository\\AnalyticsSegmentRepository\:\:deleteSegment\(\) should return bool\|Kunstmaan\\DashboardBundle\\Entity\\AnalyticsOverview but return statement is missing\.#'