This repository was archived by the owner on Nov 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
25 lines (20 loc) · 1.56 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
includes:
- 'vendor/symplify/phpstan-extensions/config/config.neon'
parameters:
level: max
# to allow installing with various phsptan versions without reporting old errors here
reportUnmatchedIgnoredErrors: false
paths:
- packages
excludes_analyse:
- "*/Source/*"
- "*/Expected/*"
- "packages/spaghetti-to-symfony-controller/bin/delete_old_controllers.php"
- "packages/spaghetti-to-symfony-controller/bin/replace_old_paths_with_routes.php"
ignoreErrors:
- '#Method Migrify\\MigrationArtefact\\SpaghettiToSymfonyController\\NodeFactory\\NamespaceFactory\:\:createNamespaceFromClass\(\) should return PhpParser\\Node\\Stmt\\Namespace_ but returns PhpParser\\Node#'
- '#Binary operation "\-" between int<1, max\>\|int<min, \-1\>\|string and 1 results in an error#'
- '#Offset (.*?) does not exist on array\|null#'
- '#Method Migrify\\MigrationArtefact\\SpaghettiToSymfonyController\\DataProvider\\OldControllerPathsDataProvider\:\:ensureHasData\(\) has parameter \$data with no value type specified in iterable type array#'
- '#Method Migrify\\MigrationArtefact\\SpaghettiToSymfonyController\\Tests\\Rector\\FunctionsToSymfonyControllerFileSystemRector\\FunctionsToSymfonyControllerFileSystemRectorTest\:\:provideData\(\) return type has no value type specified in iterable type Iterator#'
- '#Method Migrify\\MigrationArtefact\\SpaghettiToSymfonyController\\DataProvider\\OldControllerPathsDataProvider\:\:provide\(\) return type has no value type specified in iterable type array#'