@@ -11,38 +11,41 @@ parameters:
11
11
bootstrapFiles:
12
12
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
13
13
# We're aliasing classes for phpunit in this file, it needs to be added here see phpstan/#2194
14
- - src/Bridge/Symfony/Bundle/Test/Constraint/ArraySubset.php
14
+ - src/Core/ Bridge/Symfony/Bundle/Test/Constraint/ArraySubset.php
15
15
- tests/Fixtures/app/AppKernel.php
16
16
excludes_analyse:
17
17
# Symfony cache
18
18
- tests/Fixtures/app/var/cache
19
19
# Deprecated integrations (will be removed in API Platform 3)
20
- - src/Bridge/NelmioApiDoc/*
20
+ - src/Core/ Bridge/NelmioApiDoc/*
21
21
- tests/Bridge/NelmioApiDoc/*
22
- - src/Bridge/FosUser/*
22
+ - src/Core/ Bridge/FosUser/*
23
23
# BC layer
24
24
- tests/Bridge/Symfony/Bundle/DependencyInjection/Compiler/AnnotationFilterPassTest.php
25
25
- tests/Annotation/ApiResourceTest.php
26
26
- tests/Annotation/ApiPropertyTest.php
27
27
- tests/Metadata/Resource/Factory/AnnotationResourceMetadataFactoryTest.php
28
28
- tests/Fixtures/TestBundle/BrowserKit/Client.php
29
29
# The Symfony Configuration API isn't good enough to be analysed
30
- - src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php
30
+ - src/Core/ Bridge/Symfony/Bundle/DependencyInjection/Configuration.php
31
31
# Phpstan runs on phpunit > 9, a signature changed in this file
32
- - src/Bridge/Symfony/Bundle/Test/Constraint/ArraySubsetLegacy.php
32
+ - src/Core/ Bridge/Symfony/Bundle/Test/Constraint/ArraySubsetLegacy.php
33
33
# Imported code (temporary)
34
- - src/Bridge/Symfony/Bundle/Test/BrowserKitAssertionsTrait.php
34
+ - src/Core/ Bridge/Symfony/Bundle/Test/BrowserKitAssertionsTrait.php
35
35
- tests/Bridge/Symfony/Bundle/Test/WebTestCaseTest.php
36
36
- tests/ProphecyTrait.php
37
37
- tests/Behat/CoverageContext.php
38
38
- tests/Fixtures/TestBundle/Security/AbstractSecurityUser.php
39
39
# Templates for Maker
40
- - src/Bridge/Symfony/Maker/Resources/skeleton
40
+ - src/Core/ Bridge/Symfony/Maker/Resources/skeleton
41
41
earlyTerminatingMethodCalls:
42
42
PHPUnit\Framework\Constraint\Constraint:
43
43
- fail
44
+ ApiPlatform\Metadata\Resource\ResourceMetadataCollection:
45
+ - handleNotFound
44
46
ignoreErrors:
45
47
# False positives
48
+ - '#Parameter \#1 \$callback of function call_user_func expects callable\(\): mixed, non-empty-string given\.#'
46
49
-
47
50
message: "#Parameter \\#2 \\$dqlPart of method Doctrine\\\\ORM\\\\QueryBuilder::add\\(\\) expects array<'join'\\|int, array<int\\|string, object>\\|string>\\|object\\|string, array\\('o' => Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Join\\) given\\.#"
48
51
paths:
@@ -51,15 +54,15 @@ parameters:
51
54
-
52
55
message: '#Strict comparison using !== between .+ and .+ will always evaluate to false\.#'
53
56
paths:
54
- - src/Bridge/Doctrine/Common/PropertyHelperTrait.php
57
+ - src/Core/ Bridge/Doctrine/Common/PropertyHelperTrait.php
55
58
- '#Access to an undefined property Prophecy\\Prophecy\\ObjectProphecy<(\\?[a-zA-Z0-9_]+)+>::\$[a-zA-Z0-9_]+#'
56
59
-
57
60
message: '#Call to an undefined method Doctrine\\Persistence\\ObjectManager::getConnection\(\)#'
58
- path: src/Bridge/Doctrine/Common/Util/IdentifierManagerTrait.php
61
+ path: src/Core/ Bridge/Doctrine/Common/Util/IdentifierManagerTrait.php
59
62
# https://github.com/willdurand/Negotiation/issues/89#issuecomment-513283286
60
63
-
61
64
message: '#Call to an undefined method Negotiation\\AcceptHeader::getType\(\)\.#'
62
- path: src/EventListener/AddFormatListener.php
65
+ path: src/Core/ EventListener/AddFormatListener.php
63
66
- '#Parameter \#1 \$vars of class GraphQL\\Language\\AST\\(IntValue|ObjectField|ObjectValue|BooleanValue|ListValue|StringValue)Node constructor expects array<bool\|float\|GraphQL\\Language\\AST\\Location\|GraphQL\\Language\\AST\\NameNode\|GraphQL\\Language\\AST\\NodeList\|GraphQL\\Language\\AST\\SelectionSetNode\|int\|string\|null>, array<string, .+> given\.#'
64
67
- '#Parameter \#1 \$defaultContext of class Symfony\\Component\\Serializer\\Encoder\\Json(De|En)code constructor expects array, (int|true) given\.#'
65
68
- '#Parameter \#(2|3) \$(resourceMetadataFactory|pagination) of class ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Extension\\PaginationExtension constructor expects (ApiPlatform\\Core\\Metadata\\Resource\\Factory\\ResourceMetadataFactoryInterface\|Symfony\\Component\\HttpFoundation\\RequestStack|ApiPlatform\\Core\\DataProvider\\Pagination\|ApiPlatform\\Core\\Metadata\\Resource\\Factory\\ResourceMetadataFactoryInterface), stdClass given\.#'
@@ -76,7 +79,7 @@ parameters:
76
79
# https://github.com/phpstan/phpstan-doctrine/issues/115
77
80
-
78
81
message: '#Property ApiPlatform\\Core\\Test\\DoctrineMongoDbOdmFilterTestCase::\$repository \(Doctrine\\ODM\\MongoDB\\Repository\\DocumentRepository\) does not accept Doctrine\\ORM\\EntityRepository<ApiPlatform\\Core\\Tests\\Fixtures\\TestBundle\\Document\\Dummy>\.#'
79
- path: src/Test/DoctrineMongoDbOdmFilterTestCase.php
82
+ path: src/Core/ Test/DoctrineMongoDbOdmFilterTestCase.php
80
83
-
81
84
message: "#Call to method PHPUnit\\\\Framework\\\\Assert::assertSame\\(\\) with array\\('(collection_context|item_context|subresource_context)'\\) and array<Symfony\\\\Component\\\\VarDumper\\\\Cloner\\\\Data>\\|bool\\|float\\|int\\|string\\|null will always evaluate to false\\.#"
82
85
path: tests/Bridge/Symfony/Bundle/DataCollector/RequestDataCollectorTest.php
0 commit comments