-
Notifications
You must be signed in to change notification settings - Fork 98
/
phpstan.neon
72 lines (63 loc) · 2.83 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
includes:
- extension.neon
- rules.neon
- phpstan-baseline.neon
- phpstan-baseline-dbal-3.neon
- compatibility/orm-3-baseline.php
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
excludePaths:
- tests/*/data/*
- tests/*/data-attributes/*
- tests/*/data-php-*/*
- tests/Rules/Doctrine/ORM/entity-manager.php
reportUnmatchedIgnoredErrors: false
bootstrapFiles:
- stubs/runtime/Enum/UnitEnum.php
- stubs/runtime/Enum/BackedEnum.php
- tests/orm-3-bootstrap.php
ignoreErrors:
-
message: '~^Variable method call on Doctrine\\ORM\\QueryBuilder~'
path: src/Type/Doctrine/QueryBuilder/QueryBuilderGetQueryDynamicReturnTypeExtension.php
-
message: '~^Variable method call on object\.$~'
path: src/Type/Doctrine/QueryBuilder/Expr/ExpressionBuilderDynamicReturnTypeExtension.php
-
message: '~^Variable method call on object\.$~'
path: src/Type/Doctrine/QueryBuilder/Expr/BaseExpressionDynamicReturnTypeExtension.php
-
message: '~^Variable property access on PhpParser\\Node\\Stmt\\Declare_\|PhpParser\\Node\\Stmt\\Namespace_\.$~'
path: src/Type/Doctrine/QueryBuilder/OtherMethodQueryBuilderParser.php
-
message: '#^Call to method getProperty\(\) on an unknown class PHPStan\\BetterReflection\\Reflection\\Adapter\\ReflectionEnum\.$#'
path: src/Rules/Gedmo/PropertiesExtension.php
-
message: '#^Call to function method_exists\(\) with ''Doctrine\\\\ORM\\\\EntityManager'' and ''create'' will always evaluate to true\.$#'
path: src/Doctrine/Mapping/ClassMetadataFactory.php
-
message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Connection and ''getNativeConnection'' will always evaluate to true\.$#' # needed for older DBAL versions
paths:
- src/Type/Doctrine/Query/QueryResultTypeWalker.php
- src/Doctrine/Driver/DriverDetector.php
-
messages: # needed for older DBAL versions
- '#^Class PgSql\\Connection not found\.$#'
- '#^Class Doctrine\\DBAL\\Driver\\PgSQL\\Driver not found\.$#'
- '#^Class Doctrine\\DBAL\\Driver\\SQLite3\\Driver not found\.$#'
-
message: '#^Call to an undefined method Doctrine\\DBAL\\Connection\:\:getWrappedConnection\(\)\.$#' # dropped in DBAL 4
path: src/Type/Doctrine/Query/QueryResultTypeWalker.php
-
messages: # oldest dbal has only getSchemaManager, dbal4 has only createSchemaManager
- '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Connection and ''createSchemaManager'' will always evaluate to true\.$#'
- '#^Call to an undefined method Doctrine\\DBAL\\Connection\:\:getSchemaManager\(\)\.$#'
path: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php
services:
-
class: PHPStan\BackedEnumStubExtension
tags:
- phpstan.stubFilesExtension